wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Redirect a URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Redirect a URL" Watch "Redirect a URL" New topic

Redirect a URL

Felix Mathew

Joined: Nov 04, 2011
Posts: 1
Hi all, I am using tomcat just as a simple webserver. I have my application under webapps/ROOT.
My question:-
What config changes do I have to make in tomcat so that I can redirect a http request such as http://xxxx:8080/abc/def/xyz.htm to point to the xyz.htm file residing under webapps/ROOT/def directory on my tomcat server without having the used chnage their request URL?

gyan kumar
Ranch Hand

Joined: Sep 28, 2011
Posts: 61
Check this http://stackoverflow.com/questions/1363605/tomcat-base-url-redirection
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Redirect a URL
Similar Threads
Where to place - under webapps or ROOT ?
UrlRewrite Rule works on tomcat 4.1.34 but fails on tomcat 5.0.28
Servlet Container Root
serve static HTML from app context rather than ROOT
JSP and JavaBeans