Howto
Published on December 7th, 2013 | by Kieran
0Redirecting Tomcat default home page
To redirect the default Tomcat home page to another URL, simply edit the index.html in the /CATALINA_HOME/webapps/ROOT/ directory, where CATALINA_HOME is your Tomcat directory.
Delete the contents of the file, replacing it with the following lines:
1 2 3 4 5 6 7 8 9 10 |
<html> <head> <meta http-equiv="refresh" content="0;URL=<url where they will be redirected>"> </head> <body> </body> </html> |
So for example, if I wanted to redirect people to www.kieranlane.com, the meta tag would read:
1 |
<meta http-equiv="refresh" content="0;URL=http://www.kieranlane.com"> |