Articles in this section

Option "Permanent SEO-safe 301 redirect from HTTP to HTTPS" does not work on Windows OS

Plesk for Windows kb: technical ABT: Group B

Applicable to:

  • Plesk for Windows

Symptoms

  • The SSL support and Permanent SEO-safe 301 redirect from HTTP to HTTPS option is enabled in Domains > example.com > Hosting Settings, SSL certificate is chosen, but redirection does not work.

  • Custom rewrite rule is present in web.config inside <rewrite> section at example.com domain:

    CONFIG_TEXT: <rewrite>
    <rules>
    <remove name="Plesk. SEO-safe redirect for http://example.com" />
    <remove name="Plesk. SEO-safe redirect for https://example.com" />
    </rules>
    </rewrite>

  • <clear /> tag can be found in web.config file:

    CONFIG_TEXT: <rewrite>
    <rules>
    <clear />
    <!--
    <rule name="Default to root" stopProcessing="true">
    <match url="(.*)default.aspx" />
    <action type="Redirect" url="{R:1}" />
    </rule>

Cause

Incorrect directives in web.config

Resolution

  1. Log in to Plesk.

  2. Go to Domains > example.com > File Manager > httpdocs and open web.config in web editor.

  3. Remove custom rewrite rule (bold) and/or remove the <clear /> tag next to <rewrite><rules> directives.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.