Reply To: Rewrite with subdomain is avaible?

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

#26520

Kris Groove
Participant

Ok so two possibilities:
1. Use that: .when(Domain.matches(“dashboard.domain.com”)) directly with xHTML file like:
.addRule(Join.path("/dashboard").to("/pages/dashboard.xhtml").withInboundCorrection())
And instead of /dashboard use a subdomain (dashboard.domain.com).
2. Do example from your first answer but allow users only use subdomain (dashboard.domain.com) and block use: domain.com/dashboard

  • This reply was modified 7 years, 2 months ago by  Kris Groove.