Re: how to stop processing other rules if one is found

Splash Forums Rewrite Users how to stop processing other rules if one is found Re: how to stop processing other rules if one is found

#22287

Serkan Durusoy
Participant

Hi Lincoln,

“but I think that providing a lifecycle control is reasonable”

I hope you put this in your development plan. The only problem I see in engineering proper rules is that the use of nested .when.and.this.that followed by other .definerule.this.that.oh.my.god can make it hard to pinpoint problems. Having the ability to separate rulesets and define the relationship between these separate sets just sounds like an encouragement to me.

Regarding your questions:

1) If I directly enter http://localhost/fi/sitemap, I get valid response, even http://localhost/sitemap works (redirects to /fi/sitemap) but somehow /sitemap.xml returns 404 response

2) You are right to be alerted there, that was my initial concern also, but it turns out, Tomcat does that for you. If there are /path1 /path2 /path3 applications already deployed in the same virtual host, requests to their uri’s take precedence and / is not invoked.