iis - IIS7 https to http redirect not working on www subdomain -


i trying force use of http on pages of our site exception of checkout page. have used rewrite rule below doesn't work www sub-domain in url.

if use https://domain.com redirects http://www.domain.com if try https www nothing happens. please note there canonical domain name redirect in place issue still happens without rule.

<rule name="no-https" enabled="true" stopprocessing="true">   <match url=".*" negate="false" />   <action type="redirect" url="http://{http_host}{request_uri}" />   <conditions>     <add input="{https}" pattern="on" />     <add input="{url}" pattern="checkout" negate="true" />   </conditions> </rule> 

this has been driving me nuts morning, i'm hoping more experience of iis rewrites can give me help.

spent few hours on similar issue. in case i'm redirecting traffic http https , want same sub domains in use, e.g. http://subdomain.mydomain.com rewrites https://subdomain.mydomain.com. seems iis 7.5 @ least need add http binding in iis each specific subdomain or not picked catch matching below.

    <rewrite>         <rules>             <clear />             <rule name="redirect https" stopprocessing="true">                 <match url="(.*)" />                 <conditions>                     <add input="{https}" pattern="off" ignorecase="true" />                 </conditions>                 <action type="redirect" url="https://{http_host}{request_uri}" redirecttype="permanent" appendquerystring="false" />             </rule>         </rules>     </rewrite> 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -