Multiple conditions in rewrite rule in IIS

Viewed 8377

I have a rewrite rule in my asp.net mvc app in config file:

<rule name="Website1" stopProcessing="true">
  <match url=".*" />
    <conditions>
      <add input="{HTTP_HOST}" pattern="^(www.)?website1.com" />
      <add input="{PATH_INFO}" pattern="^/website1/" negate="true" />
     </conditions>
   <action type="Rewrite" url="\website1\{R:0}" />
</rule>

How does the rule work in this situation with two conditions? Both condition must be true?

1 Answers
Related