httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland RoLaNd <r_o_l_a_...@hotmail.com>
Subject [users@httpd] mod rewrite question https to http
Date Wed, 01 Feb 2012 13:28:27 GMT

Dear all,
I'm a complete newbie to apache and i've inherited a virtual host setup.i have the need to
redirect all traffic from https to http (443 to 80, yes that is correct)

the relevant rewrite rules in httpd.conf are as such:
    # all other traffic is redirected to the SSL site    RewriteEngine On    RewriteRule ^/cgi-bin/u/testing.cgi
- [L]    RewriteRule ^/cgi-bin/voice - [L]    RewriteRule ^/cgi-bin/testing2.cgi - [L]   
RewriteRule ^/cgi-bin/u/results.pl - [L]    RewriteRule ^/audio - [L]   RewriteRule ^/gram
- [L]   RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [L,R=301]
Any advice on how to force all https links to be redirected to http ?
Thanks in advance 		 	   		  
Mime
View raw message