Tags

, , ,

Your .htaccess should read:

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

The same can be written in httpd.conf in your virtual host but .htaccess is more preferable. After all, its apache’s flexibility.

Advertisement