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

Started by Suhitha, Today at 05:46 AM

Previous topic - Next topic

Suhitha

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:

<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:

<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.