Posts

Showing posts from May, 2015

HTTP to HTTPS URL Redirect IIS

Using the IIS URLRewrite module 2.0 to configure SharePoint to only accept requests on HTTPS (Secure) and redirect all HTTP (unsecure) requests to the HTTPS address. 1. Install URL rewrite Module 2.0   https://www.microsoft.com/en-us/download/details.aspx?id=7435
2. Add HTTP binding (with hostname if necessary) to the IIS site.
3. Add this to web.config of the website in IIS you want to rewrite.  Just after <system.webserver>

<system.webserver>
    <rewrite>
        <rules>
            <clear />
            <rule name="Force HTTPS" enabled="true">
                <match url="(.*)" ignoreCase="false" />
                <conditions>
                    <add input="{HTTPS}" pattern="off" />
                </conditions>
                <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="true" redirectType=&…