Forcing https: Difference between revisions

From Acenet Knowledgebase
Jump to navigation Jump to search
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 15: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://.