dave slimmon wrote: > RE: Does the URL for the page change or is it consistent? > >>> Hey there, thanks for writing. The URL is consistent. In fact, I've > come to discover that it's really everything under a specific directory that > I would like to re-direct. So, to modify my previous example, we would > like everything under: > > http://foo/SomeWebapp/SomeDirectory/SomeSubDirectory > > To forward or redirect to: > > http://foo/SomeWebapp
You could use a Servlet Filter, with the url-pattern mapped to the path you want. Inside the filter, just execute a redirect to you preferred URL. The Filters are processed before requests to the application or filesystem. p > It's not something we want to do permanently. It's really just something we > need to do somewhat urgently for a short period of time...probably a few > weeks. > > Cheers, > Davey > > On 10/2/07, Pid <[EMAIL PROTECTED]> wrote: >> dave slimmon wrote: >>> Morning folks... >>> >>> I'm new to Tomcat 6.x and would appreciate any advice. >>> >>> We have a dynamically-generated page pretty deep in our site which, long >>> story short, we do not wish to modify or alter in any way. However, we >>> would like any requests for that page to re-direct / forward to the >> front >>> door of the site. >>> >>> So for example, when a user hits the following URL: >>> >>> http://Foo/SomeWebapp/SomeDirectory/SomeDynamicPage/SomePageId >> Does the URL for the page change or is it consistent? >> >> p >> >> >>> They would immediately be sent to: >>> >>> http://Foo/SomeWebapp/ >>> >>> It seems like there must be a really easy way to do this from the Tomcat >>> Admin console somewhere, but I can't spot it and nothing in the official >>> docs I've read so far leap out at me. I'd appreciate any guidance here. >>> >>> Cheers, >>> [EMAIL PROTECTED] >>> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]