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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -