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 inweb.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
-
Go to Domains > example.com > File Manager > httpdocs and open
web.config
in web editor. -
Remove custom rewrite rule (bold) and/or remove the
<clear />
tag next to<rewrite><rules>
directives.