httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Bullock" <mbull...@root9.com>
Subject [users@httpd] Redirect HTTPS --> HTTP
Date Wed, 28 Nov 2007 20:10:23 GMT
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 

 


Mime
View raw message