Redirect https -> http

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux