File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Redirect a URL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Redirect a URL" Watch "Redirect a URL" New topic
Author

Redirect a URL

Felix Mathew
Greenhorn

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?

Thanks.
gyan kumar
Ranch Hand

Joined: Sep 28, 2011
Posts: 61
Check this http://stackoverflow.com/questions/1363605/tomcat-base-url-redirection
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Redirect a URL
 
Similar Threads
Servlet Container Root
UrlRewrite Rule works on tomcat 4.1.34 but fails on tomcat 5.0.28
serve static HTML from app context rather than ROOT
Where to place - under webapps or ROOT ?
JSP and JavaBeans