Change Your My Domain Details

If you have an existing My Domain deployed, you can rename it. For example, you can change the name when your company’s name or branding changes. In some orgs, the admin can also choose a different domain suffix, enable enhanced domains, and remove instance names from certain My Domain URLs.
Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
My Domain available in: Group, Essentials, Professional, Enterprise, Performance, and Unlimited Editions
Enhanced domains available in: Group, Essentials, Professional, Enterprise, Performance, and Unlimited Editions

User Permissions Needed
To edit My Domain settings: Customize Application
To define a My Domain name: Customize Application

AND

Modify All Data

You can only edit My Domain details on a deployed My Domain.

Note

We recommend that you test changing your My Domain details in a sandbox. Deploying a new My Domain name briefly interrupts your Salesforce users. When you're ready to update production, we recommend that you deploy your new My Domain outside of normal business hours. Before changing your My Domain name, consider how to communicate this change to your users.

Service Cloud Voice and My Domain

When you enable Service Cloud Voice, Salesforce uses your My Domain login URL to configure single sign-on to Amazon Connect. Renaming your My Domain breaks that configuration and disables Voice. We recommend that you don’t change your org’s My Domain name or suffix after you turn on Voice.

Important

  1. From Setup, in the Quick Find box, enter My Domain, and then select My Domain.
  2. Under My Domain Details, select Edit.

    The My Domain Details edit page appears.

    My Domain Details edit page

  3. To change your My Domain, enter your new My Domain or suffix.
    1. To change your My Domain name, enter a new domain name. To confirm that your new name is available, click Check for availability. If your name is already taken, choose a different one.

      Avoid entering personal information in your domain name. Instead, enter only public information.

      In production and sandbox orgs, your name must contain at least 3 characters and no more than 34 characters. In Developer Edition orgs, your name must contain at least 3 characters and no more than 27 characters. It can include letters, numbers, and hyphens, but you can’t start the name with a hyphen.

    2. If other suffixes are available for your org’s My Domain, a suffix dropdown list appears. To change your My Domain suffix, select a new suffix.

      Unsure of which suffix to pick? For most orgs, the Standard (*.my.salesforce.com) suffix is the best option.

      Tip

    Your chosen My Domain Login URL is displayed.

  4. Optional: If your suffix is Standard (my.salesforce.com), select Use enhanced domains.

    We recommend enhanced domains for all Salesforce orgs. They are required in Summer ’22. This feature allows your Salesforce login process and related URLs to meet the latest browser requirements. It also stabilizes your My Domain URL by removing the Salesforce instance, preventing user login disruption when your org moves to another Salesforce instance.

    Enhanced domains are available in Hyperforce orgs and in orgs with a deployed My Domain routed through Salesforce Edge Network. They aren’t available in Developer Edition or in scratch orgs. For more information on the availability of this feature, join the discussion on the My Domain and Enhanced Domains group in the Trailblazer Community.

    Enhanced domains change URL formats across your org. For more information, see My Domain URL Formats. Before deploying your updated My Domain, include the URL changes in your testing.

    Important

  5. Optional: Stabilize your Visualforce, Experience Builder, Site.com Studio, and content file URLs.

    Unless you disabled enhanced domains in a prior step, these settings apply upon saving (without redeploying your My Domain).

    If enhanced domains are enabled, these URLs are stabilized and these settings have no effect. Several browsers and operating systems updated their URL requirements after this option was first made available. Enhanced domains provide the latest standard for stabilizing your Salesforce org’s URLs.

    Note

    1. Select Stabilize Visualforce, Experience Builder, Site.com Studio, and content file URLs.

      This option only applies when enhanced domains aren’t enabled.

      To avoid disruption during org migrations, remove the instance name from these URLs. When you stabilize these URLs, the hostnames change. For details, see My Domain URL Formats in Salesforce Help.

    2. Optional: Select Include the instance name in Visualforce URLs when third-party cookies are blocked.

      This option only applies to the Standard, Database.com, and Cloudforce suffixes when Visualforce URLs are stabilized without enhanced domains.

      Third-party cookie blocking can cause issues loading Visualforce pages with stabilized URLs.

  6. Save your changes.
  7. If you changed your My Domain name or suffix, or if you enabled or disabled enhanced domains, Salesforce provisions your My Domain. Those changes take effect after you deploy your new My Domain.

    The provisioning process usually finishes in a few minutes, but it can take up to 24 hours. You receive an email when your My Domain is ready to be deployed and tested.

When you rename your My Domain, Salesforce redirects your previous My Domain URLs to your current My Domain. If you rename your My Domain more than one time, only the last My Domain for your org is redirected. For examples, see My Domain Considerations.

To prevent your previous My Domain URLs from redirecting to your new My Domain URLs, remove it from your org. Likewise, to move a renamed My Domain name to another org, remove the My Domain. For more information, see Remove Your Previous My Domain.