|
From: robf <rob...@sp...> - 2007-10-17 17:10:47
|
So there is no way to modify the Jetty config files to provide this functionality? Steve Loughran wrote: > > 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/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support > > -- View this message in context: http://www.nabble.com/URL-redirect-tf4640927.html#a13258429 Sent from the Jetty Support mailing list archive at Nabble.com. |