Re: mod rewrite question https to http

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

 



Hi Roland,

on the context of SSL Virtual Host put the following rewrite rules:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

iñigo


On Wed, 1 Feb 2012, Roland RoLaNd wrote:


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