|
From: Steve L. <st...@ap...> - 2007-10-17 16:30:11
|
robf wrote: > All, > > I am maintaining an legacy application that is used to generate reports, the > reports are hosted on a Jetty 4.0.4 web server and are made available to > users via a URL (http://old_url/ra/reports). Is it possible to configure > Jetty so that when the users access http://old_url/ra/reports that they will > be redirected to a different URL (http://new_url/SEAS)? If its a new server, try editing the DNS entries so it has the same hostname as the old one. Then try and mount the new app under the old one. -I know that apache and mod_rewrite can do this, but you dont really want to go there -you may want to move all links deeper down the tree; anything people have bookmarked. I could imagine creating a new error handler servlet which, instead of returning a 404 on all links, sends moved permanently (what is it? a 302? 303?) to the equivalent in the new site. remember: good urls never change. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ |