Forcing https

From Acenet Knowledgebase
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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://.