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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -