| Posted: 07 November 2007 at 5:26pm | IP Logged
|
|
|
Hi I need to add a trailing slash to my URLs
#fix URLs without trailing slashes
RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]
This works, except that I can not use https.
I tried the following, it does allow the https, but it does not add the trailing slash.
#fix URLs without trailing slashes
RewriteCond Host: http\:(.*)
RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]
#fix URLs without trailing slashes
RewriteCond Host: https\:(.*)
RewriteRule ([^.?]+[^.?/]) https\://$1$2/ [I,R]
Can you show me what I am doing wrong?
Thanks
__________________ Dan
|