There was a problem loading the comments.

How to force SSL with .htaccess

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
If you want to force your web site to all be secure (https), add these rules to your .htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Make sure you replace "example.com" with your actual domain name.

Share via

Related Articles


Comments

Add Comment

Replying to  

Captcha
© CyberLynk