Search code examples
url-rewritingasp-classiciis-7iis-7.5url-rewrite-module

Classic ASP - How do I create an IIS rewrite for the product page?


Good Morning,

I've been looking into making my product and category URL's SEO friendly by using IIS's URL Rewrite option, however I'm struggling and need some advice.

I'm trying to get the following implemented:

http://www.dibor.co.uk/Product.asp?ProductId=Y054&title=salle-de-bain-dustbin

TO

http://www.dibor.co.uk/prod/Y054-salle-de-bain-dustbin

Please can someone help me on creating the information that needs to be submitted into the URL Rewrite Rule?

From the look of it I need to have: - Pattern - Redirect URL


Solution

  • Change the default 404 error page to 404.asp and parse the url to return the correct information. There is a good example here IIS URL Rewrite ASP