Can I make use of one sub-domain for many cultures?

Kurt Muller asked on September 11, 2018 11:57

Hi all,

I have the following scenario for which I want to know if there is a solution:

2 Cultures: ES-ES & ES-CL

Domain aliases:

ES-ES: es.sitename.com

ES-CL: es.sitename.com/cl/

Is this at all possible?

Thanks Kurt

Recent Answers


Arun Kumar answered on September 11, 2018 16:14

Hi Kurt,

Yes this is possible. You can set this by enabling Settings -> URL & SEO -> Use language prefix for URLs option and then go to Localization -> Cultures to add culture alias for ES-CL as cl. Check this link for details.

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on September 11, 2018 16:29 (last edited on September 11, 2018 16:33)

Unfortunately this won't work. You cannot use language prefixes if the Force domain culture setting is enabled, which I have done. It also means that if I use language prefixes, the spanish site will be es.sitename.com/es-es

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 11, 2018 16:58

On your site configuration:

  • Make sure each language you want to use on the site is assigned under Cultures.
  • Set the main url in the domain to the domain which is primary and ensure the visitor and default cultures are set.
  • Add aliases for each language. For instance spanish.domain.com has a visitor culture of Spanish - Mexico.

This should get you what you're looking for.

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on September 12, 2018 14:03

Thanks Brenden

My issue is that I want spanish.domain.com to be used for both es-es and es-mx.

es-es must be: spanish.domain.com

and

es-mx must be: spanish.domain.com/mx

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 12, 2018 15:29

I'm not 100% sure how you'd get that without using subdomains AND prefixes setup. Unfortunately, I believe you'd have to highly configure IIS or do some custom routing to get this to work as you're expecting.

0 votesVote for this answer Mark as a Correct answer

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