.htaccess Redirect to a secure https connection December 21, 2011 Pramod T P Leave a comment Add the below given code in your htaccess page to redirect to https connection RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}