Redirect HTTPS --> HTTP

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

 



Thanks everyone for helping me with my redirect problems using a hardware load balancer.  I have redirects from http to https working perfectly, but now I can’t seem to get the https back to http working.

 

Here are the rules I am using:

 

<vhost:80>

 

RewriteCond {SERVER_PORT} !=81

RewriteCond %{REQUEST_URI} ^/scripts/vendor/new_package\.php$

RewriteRule ^.*$ https://www.domain.com%{REQUEST_URI} [R=301,L]

 

</vhost>

 

<vhost:81>

 

RewriteCond {SERVER_PORT} =81

RewriteCond %{REQUEST_URI} !^/scripts/vendor/new_package\.php$

RewriteRule ^.*$ http://www.domain.com%{REQUEST_URI} [R=301,L]

 

--or—

 

RewriteCond {SERVER_PORT} !=80

RewriteCond %{REQUEST_URI} !^/scripts/vendor/new_package\.php$

RewriteRule ^.*$ http://www.domain.com%{REQUEST_URI} [R=301,L]

 

</vhost>

 

I can’t seem to get the rule to change the request back to http though… any ideas?

 

Thanks,

 

Matt

 


[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