httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Gordon <>
Subject [users@httpd] Redirect https -> http
Date Tue, 29 May 2007 06:53:55 GMT
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

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.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message