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

#23644

Stephan Rudolph
Participant

Now I’m a little bit confused.

Currently, using rewrite, all resources become attached the extendion “.xhtml”

So I have to exclude all resources from rewriting like:

/javax.faces.resource/*.js
/javax.faces.resource/*.css
/javax.faces.resource/*.gif
/javax.faces.resource/*.jpg
/javax.faces.resource/*.png

Please tell me, by what statement(s) does I have to extend my current code in the `getConfiguration` method to achieve that?

Regarding the 3rd case (request from internal), outgoing from your hint “…it could be possible to implement something like this so that you won’t have to adjust much code.”, I thougt I don’t need to provide any parameter like:

f:param name="languageSelected" value="#{localeHandler.languageSelected}"

For example, if I have an internal request like this:

h:link value="#{cnti18n['LABEL_LINK_INTERNAL.company.location']}"
	outcome="/pages/company/location"
h:link

The URL in the location bar of the browser should be rewritten to look like:

http://TLD/LANG/company/location

Where TLD stands for the top level domain and LANG for the string provided by the session scoped managed bean value localeHandler.languageSelected.

Is there something I misunderstood?

Please tell by what statement(s) does I have to extend my current code in the `getConfiguration` method to become LANG after TLD inserted into my URL, shown in the location bar of the browser?