PDA

View Full Version : .htaccess Trailing Slash



Mike
08-30-2007, 02:12 PM
Hi all,

I have a few search engine friendly urls, which have been built using the ForceType method that the tutorial on this site shows. This works fine, but I need it so that if there is no trailing slash, .htaccess adds one. Does anyone know how I could do this?

Thanks,
Mike

rpanella
08-30-2007, 02:43 PM
Why do you need a trailing slash? It seems to me the ForceType method shouldn't care if there is a trailing slash if I understand it correctly.
________
Honda Cb500T Specifications (http://www.honda-wiki.org/wiki/Honda_CB500T)

alien
09-02-2007, 11:09 PM
Use redirect?
RewriteRule ^folder/(.+)$ /folder/$1/ [R]