On 01/13/2010 09:08 AM, Monu Agrawal wrote:
Thanks Mladen.
I want to redirect the URL to a new location like:
http://dir1.site.com/xyz.do to http://site.com/xyz.do
Is it possible to do this using rewite_file?
Did you tried
/dir1.site.com/xyz.do=/site.com/xyz.do
Although the upper makes no sense.
Usually users need
/site.com/dir1/xyz.do=/dir1.site.com/xyz.do
In which case you also need to add to the uriworkermap:
/site.com/*.do=worker
/dir1.site.com/*.do=worker
Like said isapi_redirect rewrite is meant only for
the uris that are forwarded to Tomcat.
In case you need your rewritten uri to get handled
by a different IIS filter you will need a dedicated
rewrite module
(e.g. http://www.micronovae.com/ModRewrite/ModRewrite.html)
Not aware of any open source solutions.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org