1. Redirect to a secure https connection
If you want to redirect your entire site to a secure https connection, use the following:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Posted in LAMP, Open source, Web, php - mysql on August 11, 2009 | 1 Comment »
1. Redirect to a secure https connection
If you want to redirect your entire site to a secure https connection, use the following:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}