Set Language Prefixes for URL's that are not our default Culture

Amy Patterson asked on March 9, 2022 19:07

Anyway to prevent en-us prefixes in the URL's (our default language) but use a language prefix for any other languages? We have been experimenting with the settings and just can't seem to make it happen.

If we see a language prefix viewing the live url, and try and remove it by hand, the page no longer displays correctly.

Recent Answers


Dmitry Bastron answered on March 10, 2022 07:37

Hi Amy,

The solution will be different depending on your CMS version. Are you using the v13 and .net Core?

0 votesVote for this answer Mark as a Correct answer

Amy Patterson answered on March 11, 2022 15:41

We are in CMS 12

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on March 21, 2022 06:20

Hi Amy,

Apologies for the delay. Is it Portal Engine or MVC website?

For Portal Engine we have found 2 workarounds for that:

  1. Manage URLs with prefixes manually (which obviously will add quite a bit of manual work if you have plenty of pages)
    • Turn OFF "Use language prefix for URLs" setting
    • Turn ON "Allow URLs without language prefixes" setting
    • For each page on URLs tab configure correct URL in "Path or pattern" setting, including language prefixes for desired cultures
  2. Use URL rewrite module to remove culture prefix for the default culture

For MVC sites we ended up writing custom macro which was used for URL routing. This macro was resolving URL prefix and kept it blank for default culture.

0 votesVote for this answer Mark as a Correct answer

Amy Patterson answered on March 21, 2022 14:08 (last edited on March 21, 2022 14:16)

On the Portal, if we took the time to try this workaround, would each time a new page is added, we would also have to remember to apply the workaround on pages that do not inherit from each other?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.