> 1) How can I add trailing slash in all cases unless a file extension is shown (or is it better to strip trailing slashes always?)
RewriteCond %{REQUEST_URI} !^/.+/$
RewriteRule !^.+\.[a-z]{2,4}$ - [C]
RewriteRule ^(.+)$ /$1/ [R=301,L]
> but then the rewritecond is reinvoked and it goes into a loop..
It might only loop with the other rule, if you're using &do insread of &to (/$1/index.php?area=$1&fro
RewriteCond %{QUERY_STRING} from=(.+)&do=(.+)
RewriteRule ^(.*)$ http://www.mysite.com/$1/f
Main Topics
Browse All Topics





by: baal32Posted on 2005-10-20 at 20:29:45ID: 15130314
Quick edit - where it says http://mydomain.com/areahe re/from/A/ to/B it should actually say http://mydomain.com/aaa/fr om/A/to/B