Reply To: Multi tenand app with rewrite

Splash Forums Rewrite Users Multi tenand app with rewrite Reply To: Multi tenand app with rewrite

#25802

You could use this rule which will basically abort evaluating other rules if the path matches:

.addRule()
.when( Path.matches( "/WEB-INF/{whatever}" ) )
.perform( Lifecycle.proceed() )
.where( "whatever" ).matches( ".*" )

Another option would be to modify the regular expression for the organisation parameter so that WEB-INF doesn’t match it any more.

.addRule(Join.path("/{organisation}/{path}").to("/{path}"))
.where("path").matches(".*")
.where("organisation").matches("[a-z]+")