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:

<meta http-equiv="refresh" content="0;URL=<url>">


and replace <url> with new destination.

CC0 1.0 To the extent possible under law, the creator has waived all copyright and related or neighboring rights to this work.

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.

This site uses Akismet to reduce spam. Learn how your comment data is processed.