On Nov 29, 11:37 am, Avlesh Singh <
avl...@gmail.com> wrote:
> > I'm having a hard time creating exclude conditions for a rule. Please add
> > getServletPath() as one of the condition types.
>
> Servlet path can be added but I am not too sure how much of help it would be
> for struts-like MVC implementations which are based on front controller
> design pattern; getServletPath in such cases would always return a single
> value.
> If you have a specific scenario, you might want to post the problem here.
> Maybe there is an alternative solution.
A request of
http://localhost:8080/context/path/something.html
I want to check if "/path/something.html" is equal to a list of known
paths, if so, it's excluded (so it's a negative condition).
Otherwise resume with the rewrite. Actually my wildcard would be "/
path**" but a negative one (because it's exclusion, not inclusion).
How do I get this "/path/something.html" ?
> Also, is it possible to check for existence of file in the requested URI ?> i.e. like mod_rewrite's -f , -e, -d, etc ?
>
> There's already a ticket to support -f, -d flags in mod_rewrite. The issue
> is here -
http://code.google.com/p/urlrewritefilter/issues/detail?id=49.
> Interested in writing a patch?
Thanks Avlesh for the encouragement. :-)
Hendy