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

#23608

#2. I think you need to restrict the value of “lang” so that it does not match against your CSS resource. Try this:

Disable your rewrite configuration and look at the path of the CSS file in the rendered output from one of your pages. You need to make sure that your rule does *not* match this type of address from [code]/javax.faces.resource/*[/code].

Next, add a `where(“lang”).matches(“\w{2}(_\w{2})?”)` clause to your 2nd rule. You may need to tweak so that it matches your expected LANG values.

#3. Navigation should be as simple as using normal JSF2 implicit navigation: Just return `/pages/path_to_file.xhtml?lang=en_US&faces-redirect=true`.

Rewrite should determine that this address should be corrected, and send you to the right location automatically.

~Lincoln