Admin-Ahead Community

Windows => Control Panels => WebsitePanel => Topic started by: Chetan Singh on December 13, 2013, 10:13:39 am

Title: WordPress SSL redirection from web.config file.
Post by: Chetan Singh on December 13, 2013, 10:13:39 am
Hello,

In Windows server domain redirection setup is very easy (from WebsitePanel), but if you are running WordPress site than normal redirection will not work. In this case you need to add  the following code in your domain's Web.config file under the "rule" area.

======================>>>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
  <match url="(.*)" />
    <conditions>
      <add input="{HTTPS}" pattern="off" ignoreCase="true" />
    </conditions>
  <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
======================>>>

Now you domain is redirecting to the HTTPS.

Thank you,