To auto redirect from http to https (SSL) in Apache, add the following code to the top level .htaccess file...

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Was this answer helpful? 0 Users Found This Useful (1 Votes)