jonesevan007 Posted October 30, 2008 Posted October 30, 2008 Hey guys, I've created static .html pages for each of my 4 products and I want the old osc-gen product_info pages to 301 redirect to these fresh static ones. My head explodes every time I think of ReWrite rules but this is what I'm trying to accomplish: product_info.php?products_id=20 to http://www.domain.com/static_1.html product_info.php?products_id=21 to http://www.domain.com/static_2.html product_info.php?products_id=22 to http://www.domain.com/static_3.html product_info.php?products_id=23 to http://www.domain.com/static_4.html i know how to redirect a static html page to a product_info page: redirect 301 /static_1.html http://www.domain.com/product_info.php?products_id=20 but I don't know how to go the other way around (dynamic to static) Any ideas on what I should do in .htaccess? Thanks!
jonesevan007 Posted October 30, 2008 Author Posted October 30, 2008 or does anyone know how to turn product_info.php?products_id=20 into product_info/products_id/20 or something like that? tried this but to no avail redirect 301 /product_info.php?products_id=$1 http://www.domain.com/products_id/(.*)\.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.