Tomcat: Redirect default home page to another URL

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.

4 thoughts on “Tomcat: Redirect default home page to another URL

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.