I am trying to make an entire Drupal site https.
I tried enabling secure pages, and this seems to work for every authenticated user.
However any anonymous user either gets only http, or possibly an infinite redirect if I wildcard all possible paths.
How do I get https:// to work on every page, for all users, including anonymous?
This is what my current .htaccess has in the mod_rewrite.c section:
RewriteEngine on
# Set "protossl" to "s" if we were accessed via https://. This is used later
# if you enable "www." stripping or enforcement, in order to ensure that
# you don't bounce between http and https.
RewriteRule ^ - [E=protossl]
RewriteCond %{HTTPS} on
RewriteRule ^ - [E=protossl:s]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Make sure Authorization HTTP header is available to PHP
# even when running as CGI or FastCGI.
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]