Redirect 301 to replace Rewrite

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
mikeynl
Forum Newbie
Posts: 7
Joined: Wed Jan 28, 2009 6:58 am

Redirect 301 to replace Rewrite

Post by mikeynl »

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 :?
Post Reply