[Kentico 12 MVC] Set up site representation URL per domain

Stefanie Deuse asked on August 16, 2019 09:38


I started developing a new site in Kentico 12 MVC. I share the database between my local and dev environment, where we use different domains. Is it possible to assign a different site representation URL to different domains?

Regards, Stefanie.

Correct Answer

Trevor Fayas answered on August 16, 2019 18:05

While the SiteContext should match on any Domain Alias, the presentation url indeed is locked currently to 1 per site.

What i would recommend is to have it point to the Dev environment, then use your host file to point the dev url to your local machine for you. That way ti's 1 domain, but your machine it points to your computer, everyone else to the dev environment.

0 votesVote for this answer Unmark Correct answer

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