I've read contradicting advice about forcing https connections in the following way:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
To me it seems this wouldn't allow anyone to pass a http request. Is there any disadvantage to this approach?
What security does adding
SSLRequireSSL
to the <directory />
part add? I know it will force Apache to bounce non-https requests but will they ever get through anyways?
Or in other words: What is the best way of implementing a https-only site, if not this?
We do not have an EV certificate, neither do we have a large user base. What we have is a series of survey sites where we want to make http impossible.