Wednesday, 14 August 2013

how do I force all traffic to https?

how do I force all traffic to https?

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?

No comments:

Post a Comment