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
Post a Comment