- Connect to a Plesk server via RDP.
- Start Internet Information Service (IIS) Manager at Windows Start > All Programs > (Windows) Administrative Tools.
- In IIS Manager, expand SERVERNAME > Sites > click on a required site name > double-click URL Rewrite.
- 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 field Name.
- Match URL section
- Requested URL: Matches the Pattern
- Using: Regular Expressions
- Pattern: (.*)
- Conditions sectionExpand the Conditions section > click Add… and fill in the fields:
- 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.
Enabling HTTPS redirection in IIS Manager (Any Plesk version on Windows)
Updated on November 26, 2022