title: IIS 7.5 URL Redirect for specific patterns
body: <p>When user enters domain.com it should redirect to my application which is <a href="https://www.domain.com" rel="nofollow">https://www.domain.com</a>. Currently it is not happening and it is showing a page "This Connection is Untrusted." </p>
  
  <p>I have following rewrite tag added in my web.config:</p>
  
  <pre><code>        &lt;rewrite&gt;
             &lt;rules&gt;
              &lt;rule name="Redirect to HTTPS" stopProcessing="true"&gt;
                  &lt;match url="(.*)" /&gt;
                  &lt;conditions&gt;
                      &lt;add input="{HTTPS}" pattern="^OFF$" /&gt;
                  &lt;/conditions&gt;
                  &lt;action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /&gt;
              &lt;/rule&gt;
         &lt;/rules&gt;
      &lt;/rewrite&gt;
  </code></pre>
  
  <p>Currently in my IIS 7.5 i have added Inbound Rule which i have settings as follows:</p>
  
  <ol>
  <li><p>In Match URL</p>
  
  <p>Requested URL: Matches the Pattern</p>
  
  <p>Using: Reqular Expression</p>
  
  <p>Pattern: (.*)</p>
  
  <p>Ignore Case: Checked</p></li>
  <li><p>Conditions</p>
  
  <p>Logical Grouping: Match All</p>
  
  <p>Input: {HTTPS}</p>
  
  <p>Type: Matches the Pattern</p>
  
  <p>Pattern: ^OFF$</p>
  
  <p>Track group across condition: unchecked</p></li>
  <li><p>Action</p>
  
  <p>Action Type: Redirect</p>
  
  <p>Redirect URL: https://{HTTP_HOST}/{R:1}</p>
  
  <p>Append Query string: checked</p>
  
  <p>Redirect Type: See Other (303)</p></li>
  </ol>
  
  <p>Please let me know if any changes can be made to existing settings.</p>
  
  <p>Thanks in advance.</p>