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
Francesco MarchesinFrancesco Marchesin 

Customer community - Unable to set default community url

Hi all,

I have created a customer community on SF and I named it "Community" so the url is <companyname>.force.com/communty.
Then I have created a custom domain and associated with the community so now my communty has two different domains:

1) <companyname>.force.com/communty
2) community.<companyname>.com (default)

Now I want to set the old domain (<companyname>.force.com/communty) as default domain and maintaining the new one.

So I changed the default url in the community visual editor, and then under custom domain, unchecked the main Site custom domain URL but nothing changed.

I have tried to verify the community url by executing this query in the developer console, but the secureUrl show me that the url was not changed.

SELECT Id, DurableId, IsRegistrationEnabled, SecureUrl FROM SiteDetail WHERE DurableId = '<communityid>'

How can I do to revert the url with the old one?

Thanks.