function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sudha Krishna SunkavalliSudha Krishna Sunkavalli 

Question about Multiple Custom Domains for a Community

I have a scenario where we need to use two custom domains ( store1.com, store2.com) for the same community. The page layout and other data would render based on the custom domain url which the user enters in browser. The question I have are

1.) Is it possible to have multiple custom domains for one community?
2.) Is it possible to maintain the logged in session across the custom domains?
 
Thanks in advance.
DeepthiDeepthi (Salesforce Developers) 
Hi Sudha,

You can't have multiple domain names for Communities. Force.com domain name is unique, so you can't have multiple.
While creating Communities for the first time, we are asked to register a domain name and then we can create multiple Communities with different URL but same domain name. Hence you can have just one domain name for Communities. 
https://help.salesforce.com/articleView?id=networks_creating.htm&type=0 

Hope this helps you!
Mark this post as Best Answer if it answers your issue!
Thanks,
Deepthi
Sudha Krishna SunkavalliSudha Krishna Sunkavalli

Hi Deepthi,
The custom domains are created externally and used to point to the community using the custom Urls. We are able to point the external domains to redirect to salesforce community. But we were not able to retain the login session when the domain changes in the url. Is there is way to retain the session?

Thanks,

Sudha 

Andrew Van MeerAndrew Van Meer
Sudha, did you come up with a solution to this problem?