for redirecting from http to https i used this code:
<rewrite>
<rules>
<rule name="Redirect to 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>
And its working on my main domain: http://kajsystem.com
but getting error on subdomains! check http://ift.tt/1JIgxC9
I searched anywhere and tried anything, but none of them worked!
My virtual server is Windows Server 2012 with IIS 8
Aucun commentaire:
Enregistrer un commentaire