Last night, I was looking into the way Google was crawling my site and they were seeing duplicate content from /page-name and /page-name/ so I added the Canonical Tag to my structure.pdt file and it was still happening.
I found a tutorial with this code to add to the .htaccess file that cured the problem (it removes the / on the end of any URL):
The ONLY issues I've found with this is that ticket merging stops working for some strange reason and the client search does not work. Does anyone have any insight as to why this might be happening?
I'm wondering if there is a way to restrict this rule from the admin section?
Question
evolvewh
Last night, I was looking into the way Google was crawling my site and they were seeing duplicate content from /page-name and /page-name/ so I added the Canonical Tag to my structure.pdt file and it was still happening.
I found a tutorial with this code to add to the .htaccess file that cured the problem (it removes the / on the end of any URL):
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
The ONLY issues I've found with this is that ticket merging stops working for some strange reason and the client search does not work. Does anyone have any insight as to why this might be happening?
I'm wondering if there is a way to restrict this rule from the admin section?
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.