Server version: Apache/2.2.4 (Unix)
Server built:   Apr 22 2007 15:51:28

I have the following rule in httpd.conf. It forces redirection from http -> 
https and works correctly.

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
RewriteLogLevel 9
RewriteLog "/var/log/rewrite.log"


I replaced the rules above with the following rules, which are meant to 
redirect https->http. 
It does not work. No redirect takes place and nothing is logged in the rewrite 
log file. When I use an https:/ url
it continues as an https url.

RewriteEngine On
RewriteCond %{HTTPS} !=off
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R]
RewriteLogLevel 9
RewriteLog "/var/log/rewrite.log"

Any help would be appreciated.

Peter


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to