montgomery Posted November 3, 2008 Share Posted November 3, 2008 Hello, I have a question regarding mod_rewrite. Right now my URLs are: http://www.mysite.com/item.php?id=123 I would like to insert the title of the item in the URL, like this: http://www.mysite.com/this-is-the-title-of-the-product-123.html The title is always different. The numer (123) is unique. Can I do this? How do I rewrite the URLs? Thanks for you help!! Quote Link to comment Share on other sites More sharing options...
corbin Posted November 4, 2008 Share Posted November 4, 2008 RewriteRule ^(.+)-([0-9]+).html$ /item.php?id=$2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.