Reply To: Rewrite with subdomain is avaible?

Splash Forums PrettyFaces Users Rewrite with subdomain is avaible? Reply To: Rewrite with subdomain is avaible?

#26511

Hi, yes, the pre-packaged condition you are looking for is “Domain.matches()”. Without knowing what you’re doing, I’m guessing you’ll want to extract values out of the domain (such as:)

.addRule()
.when(Domain.matches("dashboard.{*}.com"))
.perform(Forward.to("/dashboard"))

There are tons of options here. This is just one example, but really you can construct any kind of rule you need.

~Lincoln