HTTPS to HTTP redirect working only for base URL (apache) -


i have been scratching head on past couple of hours. need redirect content on website https http.

i added following code in .htaccess file.

rewriteengine on rewritecond %{https} on rewriterule (.*) http://%{http_host}%{request_uri} [r=301,l] 

now, code redirects https://example.com http://example.com. not redirect https://example/foo.html http://example/foo.html. i'm losing way traffic due this.

thanks.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -