Splash › Forums › PrettyFaces Users › automatically adding trailing slashes to url's that "need" slash › Re: automatically adding trailing slashes to url's that “need” slash
Thank you for the very detailed response.
Our main objective was to provide a consistent URL scheme and also the ability to accept incoming urls regardless of the trailing slash.
Yahoo for example removes the trailing slashes from links, google keeps them.
In the end, we decided to go with no trailing slashes at all and used:
<rewrite match=”” trailingSlash=”remove”/>
This way all urls like http://mydomain/myapp/somedir/somepath/ get 301 redirected to http://mydomain/myapp/somedir/somepath while we keep all our url-mappings and internal linking without the trailing slash.
I guess this does the trick about “consistency” and solves the main problem.
If you find our tools useful, please consider making a donation to help us stay online and building software!