3
votes

I am using window server 2003 sp2 and IIS 6, I have used URL rewrite for url rewriting, I am having trouble in installing URL rewritter in IIS 6 so I want to disable the rules temporarily

How can I disable URL rewriting temporarily, Is there something I need to add in web.config? Regards

3

3 Answers

6
votes

You can disable each rule individually using the enable attribute of the rule tag. For example,

<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="myRule" enabled="false">
                    ...
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

The key part is the enabled="false". If omitted, this value defaults to true.

There is no corresponding attribute in the rules (plural) tag to toggle all rules at once.

0
votes

You need to comment your <rewrite> tag to disable IIS URL rewrite.

0
votes

Your browser will still remember the rule even after you remove it. So make sure to also clear browser history, cookies, form data, etc...