BoarsHell
08-14-2008, 10:04 AM
here is my htaccess file...
Redirect 301 /old-product-name/pd/category-name/232-202 http://www.domain.com/new-product-name/pd/category-name/878-979
RewriteCond %{REQUEST_URI} !-s
RewriteRule ^(.*)/pd/(.*)/(.*)$ /pc2/prod.php?Screen=PROD&Category_Code=$2&Product_Code=$3 [L]
The rewrite rule simply makes my dynamic urls look static and it works fine. The problem occurs with the 301 redirect. The redirection is redirecting customers from an old product to a new product and it works fine but it appends extra information to the end of the url. Example...
http://www.domain.com/new-product-name/pd/category-name/878-979?Screen=PROD&Category_Code=category-name&Product_Code=232-202
I want the url to look like this...
http://www.domain.com/new-product-name/pd/category-name/878-979
Anyone have any ideas on how to achieve this?
Thanks,
Paul
Redirect 301 /old-product-name/pd/category-name/232-202 http://www.domain.com/new-product-name/pd/category-name/878-979
RewriteCond %{REQUEST_URI} !-s
RewriteRule ^(.*)/pd/(.*)/(.*)$ /pc2/prod.php?Screen=PROD&Category_Code=$2&Product_Code=$3 [L]
The rewrite rule simply makes my dynamic urls look static and it works fine. The problem occurs with the 301 redirect. The redirection is redirecting customers from an old product to a new product and it works fine but it appends extra information to the end of the url. Example...
http://www.domain.com/new-product-name/pd/category-name/878-979?Screen=PROD&Category_Code=category-name&Product_Code=232-202
I want the url to look like this...
http://www.domain.com/new-product-name/pd/category-name/878-979
Anyone have any ideas on how to achieve this?
Thanks,
Paul