How to force SSL with .htaccess

  •   03-30-2017 1:29 PM

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 ^(.*)$$1 [R=301,L]
Make sure you replace "" with your actual domain name.



  Add Comment

Confirm Submission

Please enter the text from the image in the box provided, this helps us to prevent spam.