This can be achieved by:
- Using URLRewrite. This thing changes URLs according to the patterns you configure. More to read: http://tomcat.apache.org/tomcat-8.0-doc/rewrite.html
Using redirects in the root folder - if someone requested the folder, it automatically sends you to another folder. This can be done by placing
index.html
in root folder containing:<meta http-equiv="refresh" content="0; url=http://mypage.com/WebContent" />
;Using Virtual Host - description for Tomcat 6.