Loading...

Knowledge Base

How to Redirect Visitors to the Secure URL - WSP

This article assumes that you have already ordered an SSL Certificate. Redirecting your visitor to the secure URL will ensure that the data exchanged between your visitor and the website is secure. In addition, redirecting your website without an SSL certificate will generate browser errors when a visitor attempts to visit your website.

To automatically redirect visitors to the Secure URL:

  1. Log into your WebsitePanel Hosting Space.
  2. Click File Manager under Hosting Spaces.

    Hosting Spaces - File Manager

  3. Click the domain you want to modify in the File Manager.

    Hosting Spaces - File Manager - Select Domain

  4. Click on the root document folder wwwroot.

    Hosting Spaces - File Manager - Document Folder

  5. Locate the web.config file and click on the edit icon.

    Hosting Spaces - File Manager - Document Folder - web.config

  6. Add the following code after the <system.webServer> code:
<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>

Please note that the rewrite is provided as is with no warranties.  If you need a customized rewrite, you will need to contact a developer as rewrites are outside the scope of our support.

Did you find this article helpful?

 
* Your feedback is too short

Loading...