Reply To: SEO URL supporting l10n/i18n with //Rewrite

Splash Forums Rewrite Users SEO URL supporting l10n/i18n with //Rewrite Reply To: SEO URL supporting l10n/i18n with //Rewrite

#23592

It should look like this:

 @Override
    public Configuration getConfiguration(final ServletContext context) {
        return ConfigurationBuilder.begin()
            .addRule(Join.path("/").to("/pages/index.xhtml"))
            .addRule(Join.path("/{lang}/{path}")
                .to("/pages/{path}")
                .where("lang").bindsTo(El.property("localeHandler.languageSelected"))
                .where("path").matches(".*")
            );
    }