First off, you are probably best setting up a single schema to handle all products, and consequently you will need to include the product's id in the rewritten URL, or you would need to apply some logic in your application to take the word and find the relevant product page.
I'm no ISAPI rewrite expert, but it would look something like this:
Code:
RewriteRule /products/(.*)/$ /display\.asp\?product_name=$1 [I,U,O]
for example
www.mywebsite.co.uk/products/widget/
becomes
www.mywebsite.co.uk/products/display.asp?product_name=widget
or if you want to keep the same application logic you pass the id in the friendly url
Code:
RewriteRule /products/(.*)/(.*)/$ /display\.asp\?id=$1 [I,U,O]
for example
www.mywebsite.co.uk/products/1/widget/
becomes
www.mywebsite.co.uk/products/display.asp?id=1
I've just rushed that off the top of my head, but I hope it acts as a starting point…
Bookmarks