[users@httpd] redirecting https to http..

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

 



Hi,

I would like to redirect all users trying
https://example.com/ ==>
http://example.com

we are still waiting for ssl certificate, but
meanwhile we want to redirect users instead of
getting a popup with "Cert from unknown authority"
when user try https://example.com

So far I am unlucky to get mod_rewrite work.

Things tried inside httpd.conf

RewriteEngine On
and following combinations..

1.
RewriteCond %{HTTPS} !=off
RewriteRule ^(.*)//(.*) http://%{SERVER_NAME}/$2 [L,R,NC]

2.
RewriteCond %{HTTPS} =on
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R,NC]

3.
RewriteCond %{HTTPS} !=off
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R,NC]

4.
RewriteCond %{SERVER_PORT} !=80
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R,NC]

Anybody know how to get this work..? Please help me..

TIA
Divakar

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