What Determines Your URL Formats?

Understand how your My Domain affects the login and application URLs for your Salesforce org, and learn about enhanced domains. Review the impact of stabilizing certain URL formats when you have a My Domain.
Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
Available in: Group, Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions

Deploying a My Domain provides a customer-specific login URL for your Salesforce org and updates your Visualforce, Experience Builder, and content URLs.

The login URL for a production org with a deployed My Domain is in the format MyDomainName.my.salesforce.com. You can also allow users to continue to log in from login.salesforce.com.

Production orgs created in Winter ’21 and later have a My Domain by default.

Note

If enhanced domains feature are enabled in your org, your My Domain is also used in other URLs, like Salesforce Sites and Experience Cloud sites. Domain suffixes (the static part at the end of the URLs) differ based on whether you enable enhanced domains. Also, instance names are removed from all URLs.

If the enhanced domains feature isn’t enabled in your org, Salesforce Sites and Experience Cloud sites have unique subdomains. Also, a My Domain setting determines whether your Salesforce instance name is included in multiple URLs.

Enhanced Domains

With enhanced My Domains, all URLs across your org contain your company-specific My Domain name, including URLs for your Experience Cloud sites, Salesforce Sites, Visualforce pages, and content files. They also comply with the latest browser requirements, allowing your users to access Salesforce using browsers that block third-party cookies.

When you enable enhanced domains on an existing My Domain, all application URLs start with the org’s My Domain name and instance names are removed. The domain suffix (the part after the My Domain name) changes for Experience Cloud sites, Salesforce Sites, content files, Site.com Studio, Experience Builder, and Visualforce URLs. And sandbox org URLs include the word “sandbox,” making it easy to identify a sandbox org from its URL. With no instance names, enhanced My Domain URLs are easier for users to remember and remain stabilized when your org is moved to another Salesforce instance.

Here are some example URL formats for orgs that have a deployed My Domain with enhanced domains. Notice that the login URL is the same as without enhanced domains, but the rest of the URLs change.

TYPE URL FORMAT
Login MyDomainName.my.salesforce.com
Experience Cloud sites MyDomainName.my.site.com
Salesforce Sites MyDomainName.my.salesforce-sites.com
Visualforce pages MyDomainName--PackageName.vf.force.com
Sandbox login MyDomainName--SandboxName.sandbox.my.salesforce.com
Sandbox Experience Cloud sites MyDomainName--SandboxName.sandbox.my.site.com

For a full list of URL formats when deploying a My Domain with enhanced domains, see My Domain Login and Application URL Formats with Enhanced Domains.

Example My Domain URL Formats Without Enhanced Domains

If your org has a deployed My Domain without enhanced domains, your My Domain name is used in your login URL. It’s also used in the application URLs for content files, Experience Builder, and Visualforce pages.

In orgs without enhanced domains, your My Domain doesn’t affect your org’s Salesforce Sites and Experience Cloud sites URLs. To use a custom domain, such as https://www.example.com, to serve your org’s Salesforce sites and Experience Cloud sites, see Manage Your Domains in Salesforce Help.

The formats for several other URLs vary based on the My Domain setting: Stabilize URLs for Visualforce, Experience Builder, Site.com Studio, and content files. Here are some example URL formats for orgs that have a deployed My Domain without enhanced domains and with the setting disabled.
TYPE URL FORMAT
Experience Builder MyDomainName--sitestudio.InstanceName.force.com
Content (files) MyDomainName--c.InstanceName.content.force.com
Visualforce Pages MyDomainName--PackageName.InstanceName.visual.force.com
When you enable the setting, your Salesforce instance name is removed from the URL and the suffixes change.
TYPE URL FORMAT
Experience Builder MyDomainName.builder.salesforce-communities.com
Content (files) MyDomainName--c.documentforce.com
Visualforce Pages MyDomainName--PackageName.visualforce.com

For more information about enabling this setting, see My Domain Considerations.

For a full list of URL formats when deploying a My Domain without enhanced domains, see My Domain Login and Application URL Formats Without Enhanced Domains.