Rewrite https Apache/Tomcat url -
i have working apache connected tomcat (mod_jk), have set 2 virtualhosts:
myexample_8080.conf myexample_4430.conf
i want redirect requests http https , on home page of https://myexample.com redirect tomcat url https://myexample.com/login
this first rule in myexample_8080.conf
rewriteengine on rewritecond %{https} !=on rewriterule ^/?(.*) https://myexample.com/$1 [r,l]
everytime ended redirect loop.
solution
redirectmatch 301 ^/*$ https://myexample.com/info
Comments
Post a Comment