Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTaccess rewrite


DAVID3733

Recommended Posts

hi there

 

I have some old 404's that i am trying to redivert and have many different redirects to rid of them but i am struggling with one kind

 

i am tring to redirect

 

domain/product_info.php?products_id=123

 

to

 

domain/-p-123.html

 

I have tried something line

 

RewriteCond %{QUERY_STRING} products_id=(*+)

RewriteRule ^product_info.php/ -p-$1.html? [R=301,NC,L]

 

and other combinations but get is to work

 

any pointers from someone in the know

 

regards and merry christmas

David

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...