Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat Conditional Redirect using requestURL

Status
Not open for further replies.

bilfus01

Technical User
Jun 4, 2012
1
0
0
US
I am hoping this is an easy question. I am not well versed in Java, I am a ITSM admin, but the ITSM product we use comes with Tomcat as it's web server. I am trying to find out if there is a simple way to set index file (welcome page) of a tomcat site to check for the requestURL() and redirect to certain URL's based on the requestURL().

Long story short I am trying to setup my site like this:

(**my tomact server is setup to receive requests on two different hostnames)


If end users reaches my page by going to then redirect to
OR

if end user reached my page by going to then redirect to
If anyone can shed some light or kindly point me in the right direction, I may be able save what hair I haven't pulled out yet.

Thanks
 
Hi

Your question is off-topic here as it has nothing to do with JavaScript.

For Tomcat configuration see forum877, or for implementing the redirection programmatically see forum695.

Feherke.
[link feherke.github.com/][/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top