Redirect 301 to replace Rewrite
Posted: Wed Jan 28, 2009 7:10 am
Hi, I just updated a site and all the pages are moved, but both the old site and the new site used to have an .htaccess file with Rewite rules for every pages. In the old website the pages were at /catalog/ and the rewrite rules was:
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
The pages in the new site are in the directory /shop/ and have a similar rewrite rule:
RewriteRule ^(.*)--id_(.*).html$ product.php?id=$2&%{QUERY_STRING}
How do I use a "Redirect 301" for this? If they were normal pages I could just do something like
Redirect 301 somepage.html ../shop/somepage.html
but with the Rewriterules I'm not sure how to do this
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
The pages in the new site are in the directory /shop/ and have a similar rewrite rule:
RewriteRule ^(.*)--id_(.*).html$ product.php?id=$2&%{QUERY_STRING}
How do I use a "Redirect 301" for this? If they were normal pages I could just do something like
Redirect 301 somepage.html ../shop/somepage.html
but with the Rewriterules I'm not sure how to do this