lundi 23 février 2015

redirect https://www to https:// through web.config

I want to redirect anything to https://domain.com

I found this code:



<rewrite>
<rules>
<rule name="SecureRedirect" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{HTTPS}" pattern="off" />
<add input="{HTTP_HOST}" pattern="^(www\.)?(.*)$" />
</conditions>
<action type="Redirect" url="https://{C:2}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>


And its working except on https://www.domain.com

My virtual server is Windows Server 2012 with IIS 8, and the domain is https://kajsystem.com





Aucun commentaire:

Enregistrer un commentaire