I would like users to be able to put an incantation in their .htaccess files
which says: if this directory was not accessed via SSL, then issue a
redirect to https://;
I know about SSLRequireSSL, but that just rejects the request.
Is there a way to do this short of using mod_rewrite? I am
Hi Brian,
A very simple solution that works on any type of webserver is to replace
the standard 403.4
SSL Required error document with some sort of automatic redirect code.
In apache.conf
you would put e.g.
ErrorDocument 403 /error/ssl_auto_redirect.php
In ssl_auto_redirect.php you