Quote:
Originally Posted by DavyMac
Force trailing slashes is raising a 301 according to the HTTP response header, which is great, but the destination page is cdseopro.php - the 404 error page.
Therefore, all URLs without the trailing slash will be redirected to the same page leading to Duplicate Title, Description and Content errors!
Code:
# WCM - Force trailing slashes
#RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
#RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
# / WCM - Force trailing slashes
Any suggestions please?
|
I've never had an issue with the provided code so this is strange. Perhaps try other code formats by google searching for: htaccess force trailing slashes
You could also talk to your host and ask them to turn on the trailing slashes as a server default.