Hidden redirect http to https with .htaccess -
i need redirect http page https , create hidden, like:
http://www.example1.com -> https://www.example2.com
so example1 visible in url bar, , example2 hidden.
will work? if not, should change?
rewriteengine on rewritecond %{request_uri} ^/index.html rewriterule ^index.html https://www.example2.com [l] rewritecond %{https} on rewriterule (.*) http://%{http_host}%{request_uri}
i take @ these 2 articles, seem have answer. :)
http://joseph.randomnetworks.com/2004/07/22/redirect-to-ssl-using-apaches-htaccess/
http://serverfault.com/questions/116206/how-do-i-use-htaccess-to-always-redirect-from-http-to-https
.htaccess http redirect https
No comments:
Post a Comment