Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm trying to redirect the following URL in IIS7 using the URL Rewrite module:


but for the life of me I can not get it. I tried replacing the ’ with an actual single quote, and that worked fine! But for the purpose of this redirect, I need the HTML code for the quote, and not the quote itself. Here is the rule from web config:

<rule name="Redirect" patternSyntax="ECMAScript" stopProcessing="true">
                <match url="^Category/Cat-3/Objectives-of-Pre-Maintenance/WHAT&amp;rsquo;S-THE-STORY-ON-LOW-CARB-DIETS-AND-EXERCISE-\.aspx" />
                    <add input="{HTTP_HOST}" pattern="" />
                <action type="Redirect" url="" appendQueryString="false" />

Any ideas would be very helpful! Thanks

share|improve this question
"A potentially dangerous Request.Path value was detected from the client (&)". The & char is reserved for querystring only. It needs to be url encoded for the character to pass. – Papa Feb 12 '14 at 23:26

Have you tried this code? &#39;

share|improve this answer
The links I need redirected point to the URL with &rsquo; so I have to do it using that code, I assume – blizz Sep 13 '12 at 15:45

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.