If you need to create a web.config
file, you can use your control panel’s file manager (Web & Classic / Plesk).
Using the following code in your web.config
file automatically redirects visitors to the HTTPS version of your site:
<configuration> <system.webServer> <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> </system.webServer> </configuration>
More Stories
How to Download Any youtube videos Thumbnail
10 Personal Finance Podcasts to Listen to in 2022
Forbes India Rich List 2021