OK I've been playing about with URL spinning during the last couple of days and appear to have started to a little of the dead-finish. I've develop a couple of solutions that actually work on some servers and never others, and my webhost (1and1 - be vary cautious about these men when you purchase them as hosts) has not had the opportunity to assist whatsoever.

My issue is this, i wish to re-write this url:

/result.php?section=[section title]&url=[url]

for this:

/article/[section title]/[url]/ (adding a trailing slash if there's none)

as well as

section.php?section=[section title]

to

/section/[section title]/ (again adding a trailing slash)

each attempt appears to possess spun sentences. presently I'm using thhe following, which works in your area, but around the live server just the 'articles' rewrite works:

RewriteRule ^article/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ /article/$1/$2/
RewriteRule ^article/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ /result.php?section=$1&url=$2

RewriteRule ^section/([a-zA-Z0-9_-]+)$ /section/$1/
RewriteRule ^section/([a-zA-Z0-9_-]+)/$ section.php?section=$1

Can anybody assist me to develop an answer which will work effectively? Thanks ahead of time, I'm really battling using what appears like something relatively straightforward...

First of all to be able to pressure the backslash around the finish you will have to really perform a redirect...

RewriteRule ^article/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ /article/$1/$2/ [R=302,L]
RewriteRule ^section/([a-zA-Z0-9_-]+)$ /section/$1/ [R=302,L]

Note: I personally use 302 because 301 could be a discomfort throughout testing, once things are working and you're simply pleased with it change it out to 301.

The 2 remaining rules would be the rewrites that merely mask/alias the query_string URL, which need to look something similar to this...

RewriteRule ^article/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ /result.php?section=$1&url=$2
RewriteRule ^section/([a-zA-Z0-9_-]+)/$ /section.php?section=$1