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

2005-08-18 Thread Brian Candler
On Wed, Aug 17, 2005 at 01:26:52PM +0200, Mads Rosendahl wrote: > 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. > > Err

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

2005-08-17 Thread Mads Rosendahl
Sorry, the php-code for rediret is "header("location: ".$url);". My memory is not what it used to be Brian Candler wrote: 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://

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 dete

[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 u