URL rewriting

32 views
Skip to first unread message

WantToKnow

unread,
May 15, 2012, 11:12:31 AM5/15/12
to UrlRewrite
How can I use URL rewriting to change the web application context
name ?
Example :
I want to redirect http://localhost/ABC/* to http://localhost/DEF/*
(i.e. from context ABC to context DEF)

Also I want to be able to redirect http://localhost/* to http://localhost/XYZ/*
(i.e. from an empty context to context XYZ)

Nikos Georgosopoulos

unread,
May 16, 2012, 5:54:35 AM5/16/12
to urlre...@googlegroups.com
This filter is context specific, I believe you need to establish the ABC context, install the filter in there and the redirect everything to the other context. for the "Empty" context, it's the default context of your webserver and for Tomcat that resorts to ROOT.
Reply all
Reply to author
Forward
0 new messages