You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Monu Agrawal <mo...@gmail.com> on 2010/01/13 07:45:17 UTC
rewrite not working in isapi_redirect
Hi,
I am using ISAPI_REDIRECT in IIS, where I am redirecting all *.do pages to a
worker. But now I want to redirect few urls to the new URLs like:
/site/xyz.do => http://mysite.com/xyz.aspx
I wrote the rule in rewrite file.
/site/xyz.do=http://mysite.com/xyz.aspx
But It didn't work.
I gave an exclusion in the urimap file
!/site/xyz.do=worker
Even then it's not working.
The other Issue is I am not getting any log file. SHould I make an empty log
file myself at the destination log file address given to the redirector?
Any help in the context wll be appreciated.
Thanks...
--
'Make Your Own Way'
Monu Agrawal
Re: rewrite not working in isapi_redirect
Posted by Mladen Turk <mt...@apache.org>.
On 01/13/2010 07:45 AM, Monu Agrawal wrote:
> Hi,
> I am using ISAPI_REDIRECT in IIS, where I am redirecting all *.do pages to a
> worker. But now I want to redirect few urls to the new URLs like:
> /site/xyz.do => http://mysite.com/xyz.aspx
> I wrote the rule in rewrite file.
> /site/xyz.do=http://mysite.com/xyz.aspx
> But It didn't work.
This is invalid target url. You should use
/site/xyz.do=/xyz.aspx
> I gave an exclusion in the urimap file
> !/site/xyz.do=worker
>
> Even then it's not working.
And it newer will.
This means 'Let IIS handle the /site/xyz.do uri'
probably ending in 404
You can setup IIS Http Redirect for that url which will
cause 302 redirect to http://mysite.com/whatever
> The other Issue is I am not getting any log file. SHould I make an empty log
> file myself at the destination log file address given to the redirector?
>
Your folder for log files probably doesn't have full access for
the account IIS is running on.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org