Pages

Monday, July 1, 2013

How to force redirection to HTTPS

To force visitors to use HTTPS to access your site via yor SSL certificate is to add the following to the top of a .htaccess file:

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

No comments:

Post a Comment