Knowledgebase: SSL
How to Redirect Visitors to the Secure URL - WSP
Posted by KB Editor on 04 May 2017 12:34 PM
|
||||
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:
<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. | ||||
|
Comments (0)