httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Gordon <pe...@pg-consultants.com>
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
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message