The search engines have been crawling my site and coming up with some bogus URLs that they use, they follow a format for multiple products so I would like to a re-write rule instead of using 301 redirects for everyone. I have been successful in fixing most of the issues but I am stuck on one. I am not sure if it because the bogus code being inserted is a CTGY...the link is:
https://www.execshirts.com/dress-shi...gory_Code=.htm
It is inserting &Category_Code= in the middle of the proper link and I need a way to remove that for multiple products. I tried the following re-write in my .htaccess but it did not work:
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^&Category_Code=.htm$ .htm [R=301,NC,L]
Anyone have any ideas? Thanks.
https://www.execshirts.com/dress-shi...gory_Code=.htm
It is inserting &Category_Code= in the middle of the proper link and I need a way to remove that for multiple products. I tried the following re-write in my .htaccess but it did not work:
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^&Category_Code=.htm$ .htm [R=301,NC,L]
Anyone have any ideas? Thanks.
Comment