Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28058

Https to Http Permenant Redirect

$
0
0

Please help me to

1) redirect http://***.com to http://www.***.com

2) redirect https://www.***.com to http://www.***.com

I have tried this rule for 1)

<rule name="www redirect" enabled="true" stopProcessing="true"><match url=".*" /><conditions><add input="{HTTP_HOST}" pattern="^[^\.]+\.[^\.]+$" /></conditions><action type="Redirect" url="http://www.{HTTP_HOST}/{R:0}" /></rule>

2)

<rule name="ForceNonHttps" stopProcessing="true"><match url="(.*)" ignoreCase="true" negate="true" /><conditions trackAllCaptures="false"><add input="{HTTPS}" pattern="(https)://(.*)" /></conditions><action type="Redirect" url="http://{C:2}" logRewrittenUrl="true" redirectType="Permanent" /></rule>

but those rules are not working for me 

please help me 

Thanks


Viewing all articles
Browse latest Browse all 28058

Trending Articles