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

#23649

You don’t have to exclude the resources if you just tell Rewrite more about how your parameters look like. If you specify a regular expression for the parameters, resources requests will simply not match you rule and therefore won’t break.

Something like this:

`
.addRule(Join.path(“/{lang}/{path}”)
.to(“/pages/{path}”)
.where(“lang”)
.matches(“\w{2}(_\w{2})?”)
.bindsTo(PhaseBinding.to(El.property(“localeHandler.languageSelected”)))
.where(“path”).matches(“.*”))
`