redirect - Redirection from www.example.com to www.example.com/index.jsp -
i have setup apache2 , tomcat7 on ubuntu 14.04.
my domain name www.example.com , want redirect www.example.com/index.jsp on tomcat login page. how can done? set works fine request made www.example.com/index.jsp. apache virtualhost setting is
proxypass / ajp://localhost:8009/ proxypassreverse / ajp://localhost:8009/
the redirection in understanding should happen on apache. apache acting proxy , not serving requests can use directive ? , how make change. pointers appreciated
i tried rewriting url in virtualhost doesn't seem working
servername www.example.com <br> rewriteengine on <br> rewriterule ^http://www\.example\.com$ https://www.example.com/index.jsp [r]
you can use following rewrite rule
rewriteengine on rewriterule ^/$ /index.jsp [r]
it search if, uri path starts , ends /
redirect /index.jsp , should trick.
Comments
Post a Comment