Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: WordPress SSL redirection from web.config file.  (Read 2780 times)

0 Members and 1 Guest are viewing this topic.

Chetan Singh

  • Full Member
  • ***
  • Posts: 123
  • Karma: +2/-0
  • Bienvenido a las Tecnologías de la Admin-Ahead.
    • Admin-Ahead Server Technologies.
WordPress SSL redirection from web.config file.
« 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,

Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!