Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Steps for HTTP to HTTPS redirection in IIS 7.5:
1) Backup Inetpub folder ( C:\inetpub)
2) Backup Inetsrv folder (C:\Windows\System32\inetsrv)
3) Download and install URL Rewrite Module on server.
Microsoft URL Rewrite Module 2.0 for IIS 7 (x64)
http://www.microsoft.com/en-in/download/details.aspx?id=7435
**4) ** Add the below rewrite rule in the web.config -> C:\inetpub\wwwroot\web.config under <system.webServer> tag.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
** **
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
** **
5) Restart IIS services and check the HTTP to HTTPS redirection.