Quote:
Originally Posted by david64 The htaccess rule I posted above should redirect all those duplicate products to the root product page. This will stop search engines seeing multiples pages for one product. However, there is always the chance that that rule will need a little tweak and if you have other rules in htaccess you may need to put it in a certain position.
Give it a try and see if it forwards you from the duplicate product pages to the root product page. |
OK placed at top and that didnt work....
I will cheekily add my htaccess file below for you to see where it might be "tweaked"
Options +FollowSymlinks -MultiViews -indexes
RewriteEngine on
RewriteBase /
#Duplicate Products
RewriteRule ^proddetail.php?prod=([a-z0-9-])+&cat=[0-9]+$ proddetail.php?prod=$1 [R=301,NS,L]
RewriteCond %{HTTP_HOST} ^www\.(.+)$
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{THE_REQUEST} /index\.php\ HTTP/
RewriteRule ^index\.php$ / [R=301,L]
deny from 83.57.64.214
deny from 84.123.166.108
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 82.99.30.
deny from 118.69.172.180
deny from 222.124.
deny from 99.16.181.130
deny from 212.107.28.198
deny from 208.99.193.
deny from 78.97.229.173
deny from 67.212.137.5
deny from 208.71.89.180
deny from 208.99.199.
deny from 68.15.185.165
#Stop Image Hotlinking
RewriteCond %{HTTP_REFERER} !^http(s)?://(
www.)?mydomain.co.uk [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(
www.)?mydomain [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !msn\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{REQUEST_URI} !^hotlinker.jpe$
RewriteRule .(jpe?g|png|gif|jpg)$ /images/hotlinker.jpe [NC,R,L]