Loading
Feature degradation | Gmail Email delivery failureRead More
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
          Set Up a Custom Domain for Testing in a Sandbox

          Set Up a Custom Domain for Testing in a Sandbox

          Test a new domain before you activate it in production, or test changes to your custom domain or to your sites. Create a custom domain in production that points to your sandbox. That domain serves the Experience Cloud sites or Salesforce Sites in your sandbox with the custom URLs in the sandbox.

          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

          Note
          Note To test a custom domain in a sandbox, create the domain in production and select the sandbox as the associated org. You can view the domain in your sandbox, but you manage sandbox custom domains in production.

          Before you start, review the considerations for this feature. Then, in your sandbox, create the Experience Cloud sites or Salesforce Sites that you want to serve with the custom domain.

          1. Determine the domain configuration option for serving your custom domain. See Determine How to Serve Your Custom Domain.
          2. Complete the prerequisites for a custom domain, including any prerequisites for your chosen domain configuration option.
            To test a custom domain that serves content from sites in your production org, use the 18-character org ID for your production org when you update DNS. For more information, see Point Your Custom Domain to Your Salesforce Org.
          3. In production, create the custom domain that serves site content from your sandbox.
            1. If you have a certificate authority (CA)-signed certificate using Certificate and Key Management for your domain, see Set Up a Custom Domain That Uses Your HTTPS Certificate.
            2. To use the Salesforce CDN partner to host an Experience Cloud site on your custom domain, see Set Up a Custom Domain That Uses the Salesforce CDN.

              In each production environment, only one sandbox custom domain at a time can use the Salesforce content delivery network (CDN). To use the Salesforce CDN in a different sandbox custom domain, update the existing sandbox custom domain that serves an Experience Cloud site via the CDN partner. Specifically, change the domain configuration option or associated org for that domain so that it no longer uses the Salesforce CDN partner in a sandbox.

              If you use Marketing Cloud Account Engagement (Pardot) in a Professional Edition org, you must use the Salesforce CDN partner to serve your custom domain.

            3. If your domain is served by a web application firewall (WAF), an external service, or a non-Salesforce service CDN, see Set Up a Custom Domain That Uses a Third-Party Service or CDN.
            4. If your domain already serves content, you can use a temporary non-HTTPS domain to minimize disruption. You can also use a temporary non-HTTPS domain to configure a domain for which your HTTPS certificate isn’t ready. After you configure your custom domain, switch to one of the other supported domain configuration options. See Use a Temporary Non-HTTPS Domain to Serve Your Custom Domain.
            5. For Associated Org, select your sandbox.
              The custom domain serves the Experience Cloud sites or Salesforce Sites in the associated org.
          4. Save your domain.
            After you save your new domain, Salesforce provisions the domain or gets it ready for use. The provisioning process can take 4–14 hours. When that process is complete, the domain’s status on the Domains Setup page changes to Awaiting Activation and you receive an email.
          5. To activate your domain, on the Domains Setup page in production, click Activate next to your custom domain.
            Your site can be unavailable for 5–10 minutes, so activate your custom domain when your site traffic is low. When your site is active, the status changes from Awaiting Activation to Completed and the Current Domain Configuration Option changes to reflect the option that you selected.
          6. To serve your sites via your activated domain, log in to the sandbox and add a custom URL.

          Your custom domain is ready for testing. After you complete your testing, you can activate the custom domain in production.

           
          Loading
          Salesforce Help | Article