0

すべてのトラフィックを https にリダイレクトする次のコードを見つけました。

<system.webServer>
<rewrite xdt:Transform="Insert">
  <rules>
    <rule name="RedirectToHTTPS" stopProcessing="true">
      <match url="(.*)" />
      <conditions>
        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
      </conditions>
      <action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="Permanent" />
    </rule>
  </rules>
</rewrite>

どういうわけかこのルールに「除外」を追加することは可能ですか?

可能であれば、特定のパスをリダイレクトしないようにしたい

たとえば、http://www.example.com/desktopmodules/以下のすべてをリダイレクトしないようにします。

お願いできますか?

4

1 に答える 1