Reply To: Multi tenand app with rewrite

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

#25800

Hey,

A few things to note here:

* you won’t need the params parameter at all, as query parameter are automatically preserved.
* parameters are automatically turned into query parameters. So you don’t need organisaion in the to() part at all.
* By default parameters only match a single path segment. But you can change the regular expression that is used for this.

So you could try this one:

.addRule(Join.path(“/{organisation}/{path}”).to(“/{path}”))
.where("path").matches(".*")