Jump to content

mod_rewrite query strings


terrid

Recommended Posts

Hi

 

I have several URLs that have a rather long query string at the end, whichIi need to redirect into a more user friendly manor:

 

http://www.example.com/search/?depId=1&typeCatId=1 needs to be redirected to

http://www.example.com/clothing/mens

 

http://www.example.com/search/?depId=1&typeCatId=1&typeSubCatId=1 needs to be redirected to

http://www.example.com/clothing/polo-shirts

 

But I have no idea how to do this.

 

Could someone provide me with an example for the above so that i can get my site working properly?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/215357-mod_rewrite-query-strings/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.