How to exclude a directory with IIS URL rewriting?

前端 未结 1 617
小鲜肉
小鲜肉 2020-12-10 12:46

I have a domain.com/index.php and a friendly url rule to redirect domain.com/index.php?s=? requests. I use IIS webserver with the URL rewrite add-on.

Above works fin

相关标签:
1条回答
  • 2020-12-10 13:01

    Taking a look here you could add this rule so when a request that you don't want to process comes, you can ignore it and stop processing.

    It should be placed first so that this rule executes before the other two.

    <rule name="block" stopProcessing="true">
        <match url="^admin/cloud/index.php$" />
        <action type="None" />
    </rule>
    
    0 讨论(0)
提交回复
热议问题