EAP 6 Rewrite file conditions do not work

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content