Rewrite with no numeric Variables in URL

Discuss practical ways rearrange URLs using mod_rewrite.

Rewrite with no numeric Variables in URL

Postby syncmaster » Tue Feb 14, 2006 3:55 pm

I was just wondering if anyone can help me rewriting a URL.

e.g. I get the following values from DB for the these variables:

catID: 67
itemID: 21
catName: flowers
itemName: rose

I want to rewrite the URL :
http://www.site.com/detail.php?catID=67&itemID=21

to something like:

http://www.site.com/flowers/rose/

Now I can rewrite it to http://www.site.com/flowers/rose/67/21/ easily but I don't want the numbers to display in the URL. How can I hide the varibales in URL to make it look like http://www.site.com/flowers/rose/ ?
I know thats possible becuse I've seen it in many websites.

Please help :-?
syncmaster
 
Posts: 1
Joined: Tue Feb 14, 2006 3:52 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 18 guests

cron