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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to