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 |