title: Redirect based on browser language
body: <p>Here is an issue we are having with our website developed in XPages which is accessible in several regions and languages.  Based on the browser language we are able to determine which header to display at the top of web page.  Our content is then displayed for that language in that region.  Content displayed is from individual documents in a Domino database and there is one for each language so the user can see language friendly data.  Some documents are only for a particular Region/Language and not translated for other regions due to availability of the product.</p>
  
  <p>The issue is when someone clicks on a link (ie via social media let's say) like <a href="https://www.cascorp.com/americas/en/reach-forks" rel="nofollow noreferrer">https://www.cascorp.com/americas/en/reach-forks</a> they go to the americas English version but the header and menu items are displayed in the browser language and content is displayed in the English language.  Server Redirect rules won't work in this case.  It would be nice to be able to redirect them to <a href="https://www.cascorp.com/eme/en/reach-forks" rel="nofollow noreferrer">https://www.cascorp.com/eme/en/reach-forks</a> and have a page that comes up stating that the product is not available for that region.  Is there a way I can dynamically change the address bar to redirect them to a different document by replacing the region part of the address?  This way we can have a document for that region/language stating that the product is not available in their region.</p>