0

I have an index site. On every index there are sub-categories and different cities. Today my URLs look like this: ~/index.aspx?indexid=1&catid=2&location=4

I want to rewrite this to: ~/party-planning-birthday-parties-new-york Where indexid=1 is an index named Party Planning, catid=2 is a sub-category called "birthday parties" etc.

What would be the best way of going about this? And a small side question: Do you think this is a good rewriting scheme? I think it makes the URLs much more readable and informative.

Thank you! -Elad

3
  • 2
    iis.net/download/urlrewrite ? Commented Mar 13, 2011 at 8:11
  • Yep. That was what I was looking for. Care to write that as an answer so I can give you credit for it. Commented Mar 13, 2011 at 8:59
  • Glad it worked for you :) Added the answer Commented Mar 13, 2011 at 22:48

1 Answer 1

1

It seems there is an official solution on the official IIS developer community page:

http://www.iis.net/download/urlrewrite

Never used it myself - I've only used their older sample code (which worked well enough for my purposes).

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

1 Comment

This really allows any kind of rewriting scheme. Surprisingly well implemented.

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.