Re: Jar for download from the page (same as prettyfaces).

Splash Forums Rewrite Users Jar for download from the page (same as prettyfaces). Re: Jar for download from the page (same as prettyfaces).

#22372

Tony Herstell
Participant

Ok I may re-code all that and try again. I just junked it all (replace with latest from head)… never takes long the 2nd time though.

So ReWrite and Pretty3 can work together and just DONT add NonEnriching.

Writing some of the rules looks very interesting without any doco…

;)

ConfigurationBuilder config = ConfigurationBuilder.begin();
if (identity.isLoggedIn()) {
// For now I am happy to allow access to all pages...

// config.defineRule().when(Direction.isInbound().and(Path.matches("/some/{page}/.*/"))).perform(Redirect.permanent("/new-{page}/"));

}
else {
// Check if they are going to one of these "allowed" pages:
// Allowed pages when not logged in
// /entermyevents/users/register
// /entermyevents/error
// /entermyevents/viewExpired
// and if not then force them to the Home (landing) page (where they
// can login)

config.addRule(Join.path("/").to("/pages/landing.xhtml"));
}
return config;