[EMAIL PROTECTED] Redirect conditional on SSL/non-SSL

2005-08-17 Thread Brian Candler
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

Re: [EMAIL PROTECTED] Redirect conditional on SSL/non-SSL

2005-08-17 Thread Mads Rosendahl
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