Loading
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Change the Domain Configuration Option for Your Custom Domain

          Change the Domain Configuration Option for Your Custom Domain

          Change the method for serving your domain. For example, switch from a third-party service or content delivery network (CDN) to the Salesforce CDN. Update your domain in Salesforce to use a different third-party service or CDN to serve your site. Or update a temporary non-HTTPS domain to use HTTPS as required by Salesforce.

          Required Editions

          Available in: both Salesforce Classic and Lightning Experience
          Available in: Enterprise, Performance, and Unlimited Editions.
          Applies to: Salesforce Sites and LWR, Aura, and Visualforce sites
          User Permissions Needed
          To view a domain:

          Manage Custom Domains

          OR

          View Setup and Configuration

          To add a domain:

          Manage Custom Domains

          OR

          View Setup and Configuration plus either a Site.com Publisher license or Create and Set Up Experiences

          To edit or delete a domain: Manage Custom Domains
          To add, edit, and delete custom URLs:

          Manage Custom Domains

          OR

          View Setup and Configuration AND either Create and Set Up Experiences OR a Site.com Publisher license

          Tip
          Tip Unsure which domain configuration option to use? See Determine How to Serve Your Custom Domain.
          1. Complete the prerequisites for your chosen domain configuration option.
            1. To serve your domain with your HTTPS certificate on Salesforce servers, complete the prerequisites for that option.
            2. To serve your Experience Cloud site with the Salesforce CDN, complete the prerequisites for the Salesforce CDN.
            3. To use a third-party service or CDN to serve your domain, complete the prerequisites for that option. These third-party services include third-party hosts, web application firewalls (WAFs), and non-Salesforce CDNs.
          2. Add custom URLs or your custom domain.
            At this point, you kept your website up and running while you prepared to use the new domain configuration option. When you’re ready to change the domain configuration option for your domain, complete these three steps.
          3. If necessary, update the DNS record of your domain. Work with your DNS provider to complete these steps.
            1. If your new domain configuration option serves your domain with your HTTPS certificate or with the Salesforce CDN, validate that the canonical name (CNAME) record points to your org. If the CNAME record points to your org and you completed the other prerequisites for your new domain configuration option, no further action is required.
            2. Reduce the Time to Live (TTL) of your domain in DNS. Use a small value, such as 300, for 300 seconds or 5 minutes.

              Think of your TTL as a timer for calls to your domain. This value tells servers how long to cache, or keep, a web page before calling DNS again to refresh the page. When you temporarily reduce this value, you minimize the chance of your users calling the previous IP address during the move.

              After you make this change, wait for the time duration of the previous TTL before you make other changes to DNS.

            3. To switch to serving your custom domain with your HTTPS certificate on Salesforce servers, update the CNAME record to point to your org.
            4. To switch to serving your custom domain with the Salesforce CDN, update the CNAME record to point to your org.
            5. To switch to using a third-party service or CDN to serve your domain, work with your third-party provider to use your target host name to forward requests to your domain to your org.
            After you update your DNS record, the changes are updated across the internet. That process, called DNS propagation, typically takes a few hours, but it can take up to 72 hours.
          4. From Setup in production, in the Quick Find box, enter Domains, and then click Domains.
          5. For your existing custom domain, click Edit.
          6. Select your new domain configuration option.
            1. If you have a certificate authority (CA)-signed certificate using Certificate and Key Management for your domain, select Serve the domain with your HTTPS certificate on Salesforce servers, and then choose the certificate to serve the domain.
            2. To use the Salesforce CDN partner to host an Experience Cloud site on your custom domain, select Serve the domain with the Salesforce Content Delivery Network (CDN).
              Note
              Note This option is unavailable for registrable domains, such as example.com without the www subdomain, and for Salesforce Sites. To serve a registrable domain or a Salesforce Site on a CDN, serve your custom domain with a third-party service or CDN.

              For more information and important considerations about the Salesforce CDN, see Serve Your Experience Cloud Site with the Salesforce Content Delivery Network (CDN).

            3. If a third-party service or CDN serves your domain, select Use a third-party service or CDN to serve this domain, and then enter the external host name.
          7. If your domain is a registrable domain such as https://example.com, to avoid vulnerabilities during HTTP redirects, select Allow HSTS preloading registration.
            This setting adds the preload directive to the HSTS header. After you enable this setting, submit your domain at https://hstspreload.org. For more information, including how to enable HSTS preloading for a domain with a subdomain, see Enable HSTS Preloading on a Custom Domain.
          8. For Associated Org, select the org from which you want this custom domain to serve site content.

            For example, to serve the sites in your production org, select Production. Or select a sandbox where you want to test this custom domain.

            This field only appears in production orgs with associated sandboxes. You can edit this field only from production orgs. For more information, see Test Your Custom Domains in a Sandbox.

          9. Save your domain.

            When you save the domain, Salesforce provisions the domain in your new org. Provisioning can take up to 14 hours for the Salesforce CDN and up to 8 hours for other domain configuration options. During provisioning, your site can be inaccessible and your site visitors can experience errors.

            When that process is complete, the status of the domain on the Domains Setup page changes to Awaiting Activation and you receive an email.

            Until you activate the domain, the configuration uses your previous domain configuration option.

          10. To activate your updated domain, on the Domains Setup page, click Activate next to your custom domain.
            Your site can be unavailable for 5–10 minutes after activation, so activate your custom domain when your site traffic is low. When your site is active, the status changes from Awaiting Activation to Completed.
          11. When your updated domain is live, reset the TTL of your domain in DNS to your previous setting.
          12. If you used a temporary non-HTTPS domain to configure this domain, remove any temporary configuration in Salesforce and DNS.
            1. Delete any temporary non-HTTPS domains that are no longer needed.
            2. In DNS, delete any TXT records that you added to set up the temporary domain.
           
          Loading
          Salesforce Help | Article