URL Rewriting not working in IIS 6

a.tajkhan
 
on Jun 09, 2012 12:13 AM
10441 Views

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

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Results 1 - 5 of 6
Mudassar
 
on Jun 09, 2012 12:21 AM

The article explains what you need to do for IIS6 in Approach 4.

Still here's a video for you

a.tajkhan
 
on Jun 09, 2012 12:40 AM

Hi Mudassar

I tried but nothing happen giving me a same result.

a.tajkhan
 
on Jun 10, 2012 10:18 PM

No one to reply this post.

Mudassar
 
on Jun 10, 2012 11:31 PM

Refer

http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/

And if you are using ASP.Net 3.5 or higher a better solution is URL Routing

http://www.aspforums.net/Threads/119060/URL-Routing-Pass-Id-to-next-page-via-QueryString/

a.tajkhan
 
on Jun 11, 2012 12:17 AM

Hi 

I have tried both and its working on my local but not on production server and same message 

HTTP Error 404 - File or directory not found.

 

Results 1 - 5 of 6