• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect a URL

 
gagan ranade
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I have a very simple request but dont know how to do...

Requirement:
I have two different URL's. http://myapp.com (Old URL) and http://mynewapp.com (NEW URL)

What I want is if a user enters OLD URL in the browser, it should automatically change to NEW URL.

I want to do the same in two different environments:
1. Apache 3.0 (tcl script)

2. Tomcat 5 (servlet, JSP)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Tomcat, simply create an application that redirects all requests to the new URL using response.sendRedirect.
 
gagan ranade
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it something that we can configure in web.xml or server.xml?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic