Forum Moderators: phranque
http://www.example.com/exampleurl
TO
http://www.example.com/exampleurl/
? Google Webmaster tools sees them as separate pages and I am trying to stave off a dupe content penalty....
I only need it for that one URL, not a blanket rule.
Thanks!
Joe
One way is:
RewriteRule ^somepath$ http://www.example.com/somepath/? [R=301,L] Be aware that order of processing may not be what you expect if you have other redirects on your site, and those redirects use
Redirect or RedirectMatch in them. Use RewriteRule for all of them.
URLs without a trailing slash - when they match a real folder name in the filesystem - are redirected to add that slash back on.
An extensionless URL should be just that, ending in nothing (no extension, no dot, and no trailing slash either).