Knowledgebase

Redirect HTTP to HTTPS (Windows Hosting)

To force a website to use HTTPS, use the following lines of code in a file named .htaccess placed in your website's root folder:

[code]RewriteEngine On
RewriteCond %HTTPS (?!on).* 
RewriteCond Host: (.*) 
RewriteRule (.*) https\://12 [I,RP][/code]






  • redirect, http to https, ssl
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How To Check Your Site for Exploits

If you are using Open Source or 3rd Party Software on your Website we recommend the following two...

Login using your Social Media Account

Too many login names and passwords to remember ?Here's how you can login to our site using your...

Database Connection Strings

Any application you have that uses MySQL or MS SQL please ensure you always use the FQDN (Fully...