简体   繁体   中英

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

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.

您需要注释您的<rewrite>标记以禁用 IIS URL 重写。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM