View Single Post
  #701  
Old 03-08-2013, 11:02 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: CDSEO Pro - Complete SEO Solution - Custom Urls, Page Titles, Meta Data, Link Anchors

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.
Reply With Quote