Monday, May 25, 2015

Sitecore remove en from URLs

By default Sitecore may automatically add the language options to the sites URL. For example the URL may appear as "" when you would rather it appear as "".

This is controlled by the "languageEmbedding" setting in the web.config file (in the website's root). Simply find the following line under linkManager > providers and change the value to never:
<add name="sitecore" languageEmbedding="never" />
The valid options for this setting are:
  • asNeeded
  • never
  • always

No comments:

Post a Comment