Redirect my website to HTTPS in Windows Hosting
If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected. You need to use the Plesk File Manager to add some code to the web.config file in your Windows Hosting account.
web.config
file. Do not replace your existing web.config
file with the code we provide. Before changing your web.config
file, we recommend creating a backup. - Go to your GoDaddy product page.
- Select Web Hosting, and next to the Windows Hosting account you want to use select Manage.
- In the account Dashboard, select Plesk Admin.
- In the Plesk Websites & Domains page, for the domain you want to use, select File Manager.
Note: If you don't see any icons to select, in the center of the page select Show More and then select File Manager.
- In the File Manager list, select web.config. The web.config file opens in a code editor.
- After the opening
system.webServer
tag, and before the closingsystem.webServer
tag, add the next code snippet. Be careful not to delete any of the existing code.
<rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite>
- At the bottom of the code editor, select OK.