Syed Salman Raza Zaidi
Syed Salman Raza Zaidi

Reputation: 2192

Disable URL Rewrite rules

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

Upvotes: 6

Views: 11021

Answers (3)

Amin
Amin

Reputation: 119

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

Upvotes: 1

Daniel Barbalace
Daniel Barbalace

Reputation: 1217

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.

Upvotes: 9

Sanket Tarun Shah
Sanket Tarun Shah

Reputation: 637

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

Upvotes: 0

Related Questions