Override an IIS rewrite rule for child site?

前端 未结 1 1328
后悔当初
后悔当初 2021-01-12 11:55

I wanted to force all inbound connections to revert to HTTPS for my site. Searching StackOverflow.com for an answer yielded the following code:



        
相关标签:
1条回答
  • 2021-01-12 12:40

    The following web.config snippet should do what you want. It removes all rewrite rules for this application.

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <clear />
                    <!-- Insert rules for this application (if any) **below** the "clear" -->
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题