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.

6 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

  2. OB says:

    How do you get this to work on a Windows 2012 server? I’ve tried but it just gives me a blank page! On a Windows 2008 server this works without issues.

Leave a Reply

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