locked
HTTP to HTTPS Redirection RRS feed

  • Question

  • We need to redirect all HTTP traffic to HTTPS to allow for external access to the company SharePoint site.  I would like to use the Rewrite tool for IIS 7.5, but am running into issues.

    Both http and https sites work (AAMs configured for HTTP and HTTPS), but when enabling the redirection rule, we receive a 404 not found error.  The rewrite rule is written as follows:

    <rewrite>
      <rules>
        <rule name="HTTPS to HTTPS Redirection" enabled="false">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
          </conditions>
          <action type="Rewrite" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
      </rules>
    </rewrite>
    Thank you for any assistance that you can provide!

    -Drew

    Thursday, May 17, 2012 2:49 PM

Answers

All replies