Forum Moderators: phranque
So the pages are:
original-product-page.html
and when added to a 2nd category
original-product-page-1.html
and when added to a third category
original-product-page-2.html
and so on
this obviously causes issues in terms of on site duplicate content - dilution of pr etc.
is there a way of rewriting a page in htaccess so when the page that is requested ends in a -1, or -2 or whatever that page is 301'd back to the original product page?
thanks for the help.
You'll do better to see if you can find a "plug-in" for that e-commerce package that will stop the "-1" links form being published in the first place. Once that is done, you can optionally do the redirect (which is trivial using mod_alias or mod_rewrite) to speed up the clean-up of search engine results. When you get to that point, see the Apache mod_alias RedirectMatch and mod_rewrite RewriteRule documentation, and then post your best-effort code as a basis for discussion.
Jim