URL Rewriting not working in IIS 6

Last Reply on Jun 11, 2012 12:41 AM By a.tajkhan

Posted on Jun 09, 2012 12:13 AM

Hi

I have done URL rewritting refering below article

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

I am using IIS 7.0 on my local machine and it is working fine but on my production it is IIS 6.0 and over there it was not working.

It gives HTTP 404 error when I click on any link.

I have done Url rewriiting like this

From This: Response.Redirect("Product.aspx?pid=" + ProductID) this works on both IIS 6 & 7

to this: Response.Redirect("Product.aspx/" + ProductID) this works only in IIS 7 not on IIS 6.

Please help how can I achieve above in IIS 6

Posted on Jun 11, 2012 12:41 AM

Hi

It has been resolved.

just need to add aspnet_isapi.dll in Configuration.

http://stackoverflow.com/questions/374946/url-rewriting-routing-with-net-3-0-and-iis-6-0