Applicable to:
- Plesk 11.x for Windows
Question
The option Permanent SEO-safe 301 redirect from HTTP to HTTPS is absent in Domains > example.com > Hosting Settings in the Plesk versions before Onyx.
How to configure the redirect to HTTPS in these Plesk for Windows versions?
Answer
-
Connect to the server using RDP.
-
Go to Internet Information Services (IIS) Manager > server_hostname > Sites > example.com > URL Rewrite:
Note: If the URL Rewrite button is missing, install the IIS URL Rewrite Module using Plesk Installer as described in the article How to install/uninstall Plesk additional components.
-
Click Add rule(s)... on the right pane, under the Inbound rules select Blank rule and click OK:
-
Configure the new rule:
-
Set the rule name in the Name field.
-
Match URL section: Requested URL - Matches the Pattern, Using - Regular Expressions, Pattern -
(.*)
:
-
In the Conditions section click Add... and set the following: Condition input -
{SERVER_PORT_SECURE}
, Check if input string - Matches the Pattern, Pattern -^0$
: -
Action section: Action type - Redirect, Redirect URL -
https://{HTTP_HOST}{REQUEST_URI}
, Redirect type - Permanent (301): -
Click Apply on the right pane to save the rule.
-
Additional information
https://blogs.msdn.microsoft.com/kaushal/2013/05/22/http-to-https-redirects-on-iis-7-x-and-higher/
Comments
0 comments
Please sign in to leave a comment.