Difference between revisions of "Forcing https"
From Acenet Knowledgebase
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 (.*)...") |
(No difference)
|
Latest revision as of 19:48, 26 September 2018
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://.