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>
If you have an existing web.config file:
system.webServer (which contains rewrite)rewrite (which contains rules)rules (which contains one or more rule sections)rule section, including match, conditions, and action, inside the rules section.In Order to install an SSL cert after purchasing follow the steps below 1. Connect to your... Read More
1. Login to Plesk. 2. Click on Email addresses in your panel. 3. Select your email... Read More
1. Login to Plesk. 2. Click on Change plan/add-ons on the right sidebar. 3. Select the... Read More
1. Login to Plesk. 2. Click on PHP Settings in your Domain Panel. 3. Select your PHP... Read More
To edit an existing DNS zone record: Log into Plesk. Click the Websites & Domains tab,... Read More