Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to rewrite an url. Say I have an URL like and I want to rewrite that as or even I am wanting it to do that same thing for all the urls on my page.

Is there a way to get everything before .aspx, then remove .aspx? and add / and remove = and add /?

How could I do this using IIS 7.5?

share|improve this question

The shorter version is nicer and cleaner I think. The following rewrite rule should do what you want:

<rule name="Rewrite Wall URL's" stopProcessing="true">
    <match url="^wall/(.+)" />
    <action type="Rewrite" url="/wall.aspx?Personid={UrlEncode:{R:1}}" appendQueryString="false" />
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.