title: Redirect HTTPS to HTTP for specifc page and its underlaying rsources
body: <p>I have requirement in which i am redirecting any http request to https i.e <a href="http://test.amey.com/sitename" rel="nofollow noreferrer">http://test.amey.com/sitename</a> to <a href="https://test.amey.com/sitename" rel="nofollow noreferrer">https://test.amey.com/sitename</a> 
  To achive this i am applying following rule in IIS url rewrite </p>
  
  <pre><code>&lt;rule name="HTTP to HTTPS Redirect" patternSyntax="Wildcard" stopProcessing="true"&gt;
     &lt;match url="*" /&gt;
     &lt;conditions logicalGrouping="MatchAll"&gt;
        &lt;add input="{HTTPS}" pattern="off" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Redirect" url="https://{HTTP_HOST}/sitename" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>The above rule works fine which redirects any http request to https.</p>
  
  <p>But I have another requirement in which i want to redirect https request to http for certain pages and anything below it i.e
  <a href="https://test.amey.com/sitename/reports/index" rel="nofollow noreferrer">https://test.amey.com/sitename/reports/index</a> - (where reports is controller name and index being action method)
  to > 
  <a href="http://test.amey.com/sitename/reports/index" rel="nofollow noreferrer">http://test.amey.com/sitename/reports/index</a></p>
  
  <p>Reports have more pages under this directory, so i want to apply rule anything under reports should redirect to http i.e</p>
  
  <p><a href="https://test.amey.com/sitename/reports/sales" rel="nofollow noreferrer">https://test.amey.com/sitename/reports/sales</a>
  to
  <a href="http://test.amey.com/sitename/reports/sales" rel="nofollow noreferrer">http://test.amey.com/sitename/reports/sales</a></p>
  
  <p><a href="https://test.amey.com/sitename/reports/weeklysale" rel="nofollow noreferrer">https://test.amey.com/sitename/reports/weeklysale</a> to <a href="http://test.amey.com/sitename/reports/weeklysale" rel="nofollow noreferrer">http://test.amey.com/sitename/reports/weeklysale</a></p>
  
  <p>I have been looking for solution for sometime but can not figure anything out. Any help will be great advantage.</p>
  
  <p>Thank You</p>