EAP 6 Rewrite file conditions do not work
Issue
- The -s, -d or -f flags don't appear to work in rewrite conditions, for example:
<rewrite name="rule-1" pattern="^/app/(.*)" substitution="/app/redirect.jsp" flags="RL">
<condition name="condition-1" test="%{REQUEST_PATH}" pattern="!-s"/>
</rewrite>
- What I want is to return the file if it exists, if it doesn't then return index.html.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.