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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -