Tomcat: Redirect default home page to another URL
by Ali on Mar.28, 2009, under Misc
To create a redirect from default page in Tomcat edit CATALINA_HOME/webapps/ROOT/index.html:
nano /CATALINA_HOME/webapps/ROOT/index.html
Where CATALINA_HOME is your tomcat directory. Delete the content and replace with the following:
<html>
<head>
<meta http-equiv="refresh" content="0;URL=<url>">
</head>
<body>
</body>
</html>
and replace <url> with new destination.
To the extent possible under law, the creator has waived all copyright and related or neighboring rights to this work.
October 20th, 2011 on 2:08 AM
Bad Idea. Better put a liddle index.jsp to the root like this:
September 11th, 2012 on 3:32 AM
cant we redirect according to the url? any idea?
September 11th, 2012 on 8:52 AM
You put your url in.
May 14th, 2013 on 5:21 PM
Works nice :D, I just needed to put URL=../myApp to redirect
Funciona bien, solo tuve que poner URL=../myApp para que direccione a mi aplicacion web