I'm trying to use .htaccess
to send all traffic to https
. I'm using the example in this answer: Need to redirect all traffic to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
This isn't redirecting anything for me. I placed it in var/www
but it doesn't seem to have any effect. What did I do wrong?