How to redirect your web pages to https by default

add this to your web.config file in your wwwroot folder

<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>
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

My account has been deleted, can it be restored?

Once your account has been deleted for non-payment, it cannot be restored. If your account has...

How do I enable parent paths?

If you are seeing an error similar to this Active Server Pages error 'ASP 0131' Disallowed...

How do I edit my web pages?

To edit your web pages, please use a web editor like one of the below editors and then FTP the...

What does "this page contains secure and unsecure elements" mean ?

When you visit a secure page (using HTTPS protocol), "This page contains secure and unsecure...

Upgrading / Downgrading your packages

To upgrade or downgrade your package that you are on to a different package is quick...