title: Adding an Inbound Rule in IIS [UrlRewite]
body: <p>Currently, on my Production server, i have Inbound Rule set as follows which works file for all my requirements.</p>
  
  <p>Inbound Rule is as follows.</p>
  
  <pre><code>Match URL section
  Requested URL: Matches the Pattern
  Using: Regular Expression
  Pattern: (.*)
  Ignore Case: checked.
  
  Conditions section
  Logical grouping: Match All.
  Input: {HTTPS}
  Type: Matches the Pattern
  Pattern: ^OFF$
  Track capture groups across conditions: unchecked.
  
  Action section:
  Action type: Redirect
  Redirect URL: https://www.domainname.com/{R:0}
  Append query string: checked.
  Redirect Type: Permanent (301).
  </code></pre>
  
  <p>My Requirement is:
  When user types </p>
  
  <pre><code>https://beta.domain.com it should redirect to https://www.domain.com. 
  </code></pre>
  
  <p>if user types </p>
  
  <pre><code>http://beta.domain.com it should redirect to https://www.domain.com. 
  </code></pre>
  
  <p>If user types</p>
  
  <pre><code>http://www.domain.com it should redirect to https://www.domain.com
  </code></pre>
  
  <p>If user types</p>
  
  <pre><code>http://domain.com it should redirect to https://www.domain.com
  </code></pre>
  
  <p>Thanks in advance.
  Any help would be appreciated.</p>
  
  <p>Thanks in advance.</p>