tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dave slimmon" <daveyko...@gmail.com>
Subject Re: quick or easy re-direct
Date Tue, 02 Oct 2007 19:26:29 GMT
Thanks to both Ken and P for the great suggestions.   We're going to use the
filter approach discussed earlier in this thread, but the urlrewrite feature
Ken mentions seems quite appealing as well for other things we have planned.

Cheers,
Davey


On 10/2/07, Ken Bowen <kbowen@als.com> wrote:
>
> Another option I've been learning to use (it has both forward and
> redirect capabilities) is:
>
> http://tuckey.org/urlrewrite/
>
> --Ken
>
> Pid wrote:
> > 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 <p@pidster.com> 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,
> >>>> daveykorma@gmail.com
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To start a new topic, e-mail: users@tomcat.apache.org
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>>
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message