Forcing https

From Acenet Knowledgebase
Revision as of 15:48, 26 September 2018 by Docs admin (talk | contribs) (Created page with "To force all traffic to https:// instead of http://, add the following to the top of your .htaacess file:<br> <pre> RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To force all traffic to https:// instead of http://, add the following to the top of your .htaacess file:

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Now when someone goes to your site, they will be forced to https://.