Jump to content
  • 0

.htaccess Question


evolvewh

Question

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?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...