---
schema_version: "1"
id: 4cc4a67d352ac20499e0f6ab159c0a0351362566d066c86af09a62de84f83cea
title: Custom Domain Prerequisites
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/domain_mgmt_prereqs.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_prereqs.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2a284187f2b06724dc0423f5a7da7a6612ecfdb314a40b90b3e6302943a0b9a6
description: Before you serve your site content with a custom domain, register a domain. To get that domain ready to serve your site content, update the Domain Name System (DNS) record to point to your org. Review your site URLs for potential conflicts, and complete the prerequisites for your chosen domain configuration option.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Custom Domain Prerequisites

Before you serve your site content with a custom domain, register a domain. To get that domain ready to serve your site content, update the Domain Name System (DNS) record to point to your org. Review your site URLs for potential conflicts, and complete the prerequisites for your chosen domain configuration option.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Applies to: Salesforce Sites and <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;language=en_US" target="_blank">LWR, Aura, and Visualforce sites</a></td></tr></tbody></table>

## Determine Your Desired Domain Configuration Option

The domain configuration option for your domain specifies how the domain serves your site content via HTTPS. If you have Experience Cloud licenses, we recommend that you use the Salesforce content delivery network (CDN). For both Experience Cloud sites and Salesforce Sites, you can serve your domain with your HTTPS certificate on Salesforce servers. Or you can use a non-Salesforce service or CDN to host your domain.

If you don’t have a domain yet, your chosen domain configuration option can affect the features that you require from your domain name registrar. For example, if you chose to serve your site via a third-party CDN, you can select a company that provides domain name registration and the CDN service. For more information, see [Determine How to Serve Your Custom Domain](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_determine_configuration.htm&release=264.0.0&type=5 "To determine the recommended domain configuration option to serve your custom domain, answer a few questions about your domain and your Salesforce configuration.").

## Register a Domain

If you own a domain such as www.example.com, you can use it to serve your site content.

If you don’t own a domain, choose a domain name and register it. When selecting a registrar, consider these factors.

- If you require services other than domain registration, selecting a provider that offers multiple services can reduce your cost.
- The reputation of the registrar or service provider. If you plan to bundle services, their reputation is especially important. Ensure that your selected provider offers sufficient privacy protections.
- Salesforce doesn’t recommend registrable domains, such as example.com instead of www.example.com. If you choose to serve your site with a registrable domain, see the important considerations in the section on Registrable Domains.
- The contract’s duration. A long-term contract can provide lower overall cost. With a shorter-term contract, if you become dissatisfied with the service, you can transfer your domain name to another company.

## Registrable Domains

A registrable domain—sometimes called a root domain or naked domain—is the domain’s public suffix, such as .com or .org, plus the label to the left of that suffix. An example is example.com, without the www subdomain.

You can’t use the [Salesforce CDN](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_overview.htm&release=264.0.0&type=5 "Optimize page load times and site performance with our content delivery network (CDN). Salesforce partners with a CDN provider to efficiently deliver publicly cacheable content to users on your Experience Cloud sites.") with a registrable domain. Because the Salesforce CDN is the recommended configuration for custom domains that serve Experience Cloud sites, Salesforce doesn’t recommend registrable domains.

If you choose to serve your sites on a registrable domain, ensure that your provider supports alias records or CNAME flattening.

One of the prerequisites for a custom domain is to configure a canonical name (CNAME) record on your domain that points to your Salesforce org. However, you can’t set a CNAME record on a registrable domain because of a DNS limitation. To bypass this limitation, some DNS vendors implement a CNAME behavior for registrable domains that mimics the standard CNAME behavior. To serve your site with a registrable domain, ensure that your DNS provider supports this workaround, which is often referred to as an alias record or CNAME flattening.

If your DNS provider doesn’t support this workaround, you can’t use your registrable domain to serve your Experience Cloud sites or Salesforce Sites.

If you choose to serve your sites on a registrable domain, we recommend that you configure [enable HSTS preloading](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_hsts_preloading.htm&release=264.0.0&type=5 "As a security best practice, enable and submit your custom domain for HTTP Strict Transport Security (HSTS) preloading. Connections can be vulnerable when HTTP requests are redirected to HTTPS. An example is a user attempting to access your custom domain using the HTTP protocol. By adding your registrable domain to the third-party HSTS preload list, supported browsers always use HTTPS, protecting your users from attacks during those HTTP redirections.") on the domain.

## Update Your Domain DNS Record to Point to Your Org

Before you add a domain in Salesforce, update the DNS record for your fully qualified domain name (FQDN) to include your 18-digit Salesforce org ID. For more information, see [Point Your Custom Domain to Your Salesforce Org](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_update_dns.htm&release=264.0.0&type=5 "Before you add a domain in Salesforce, point your domain to your Salesforce org in Domain Name Service (DNS). If your custom domain uses your HTTPS Certificate or the Salesforce content delivery network (CDN) partner, add a canonical domain name (CNAME) record for your fully qualified domain (FQDN) to DNS. The CNAME record references your Salesforce org ID and your FQDN. Then, if you plan to use the Salesforce CDN to serve your Experience Cloud site on your custom domain, add a second CNAME record that our CDN partner requires.").

## Select the Org to Serve Your Site

Except for testing in a sandbox, a single fully qualified domain name (FQDN) is meant to exist in one org only. If you have multiple production orgs, determine the org in which to add and maintain the domain.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note Although it’s technically feasible for domains with the same FQDN to exist in multiple non-sandbox orgs, that configuration isn’t supported.

## Review Your Site URLs for Potential Conflicts

If you host multiple sites on the same domain, be sure to review your site URLs for conflicts because it’s possible to configure the same URL for pages on two different sites.

Let’s say that you host Site A and Site B on the same domain, https://www.example.com. Site A’s URL uses the custom URL path prefix /products. Site B serves pages from the root path and has a page with the page path /products. As a result, both Site A’s URL and Site B’s page URL are https://www.example.com/products.

In this scenario, a site visitor can access the Site B page only through a navigation menu on Site B. If a site visitor navigates to https://example.com/products any other way, they’re directed to Site A.

If you identify a potential conflict, either rename the site path or choose a different path for serving the content on your custom domain.

## Complete Additional Prerequisites Based on Your Chosen Domain Configuration Option

Review the prerequisites for your selected domain configuration option. See [Prerequisites for a Custom Domain That Uses Your HTTPS Certificate](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_cert_prereqs.htm&release=264.0.0&type=5 "Before you serve your domain with an HTTPS certificate that you own, confirm that this domain configuration option applies to your configuration. Then update your DNS configuration, and upload your HTTPS certificate."), [Prerequisites for the Salesforce CDN](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_prerequisites.htm&release=264.0.0&type=5 "Before you set up a custom domain that uses the Salesforce content delivery network (CDN), complete these steps."), and [Prerequisites for a Custom Domain That Uses Your HTTPS Certificate](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_cert_prereqs.htm&release=264.0.0&type=5 "Before you serve your domain with an HTTPS certificate that you own, confirm that this domain configuration option applies to your configuration. Then update your DNS configuration, and upload your HTTPS certificate.").

#### See Also

- [Custom Domains](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt.htm&release=264.0.0&type=5 "Provide a branded experience for users who access your external-facing Salesforce content by serving your Digital Experiences or Salesforce Sites on a domain that you own, such as https://www.example.com.")