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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -