1

I am trying to wrap my head around a URL rewrtie / redirect project I need to work on. We currently have this url: http://www.example.com/Details/Detail.aspx?param1=8&param2=12345

Here is what the rewritten URL will look like: http://www.example.com/Param1/8/Param2/12345

I am using the ISAPI_Rewrite filter to allow for the "nice" url and make the page think it is still using the old url. That works fine.

Now, I need to redirect users, if they use the old URL, to the new URL. I figure I would need to use a combination of the filter and an HTTPModule / Handler to perform the redirect.

Any ideas?

1
  • What I may end up doing is having a HttpHandler inspect the URL for the old version and redirect to the new one. Commented Mar 31, 2010 at 21:30

3 Answers 3

1

Have you tried IIS URL Rewrite?

Sign up to request clarification or add additional context in comments.

Comments

0

If you are not going to go down the System.Web.Routing (or use ASP.NET MVC) path then I would have a look at this link.

1 Comment

Well, I have read that, but that only helps me with the rewrite of the URL, not the redirection that would need to happen.
0

Using a HttpHandler would be your best bet. That way, you will be able to track all incoming requests, filter out the old format URLs and redirect them to the correct pages.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.