1

How to redirect traffic to http

view story
linux-howto

http://serverfault.com – I have an apache server under a proxy that can run HTTPS. Instead of sending the HTTPS=on header, it sends HTTP_X_FORWARDED_PROTO=https. I want to write an .htaccess rule that redirects all requests from https to http unless the URL is /user/login. What I've come up with is around these lines (which does an infinite loop): RewriteCond %{HTTP:http_x_forwarded_proto} !http RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] (HowTos)