My Domain
Showcase your company’s brand with a customer-specific subdomain name in your Salesforce org URLs. With My Domain, you can include your company name in your URLs, for example, https://mycompany.my.salesforce.com. With these org-specific URLs, you can set up a custom login page, set a custom login policy, offer single sign-on, and allow users to log in with a social account. My Domain also allows you to work in multiple Salesforce orgs in the same browser at the same time.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Group, Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions |
All orgs get a My Domain with enhanced domains by default. If you don’t like your org’s My Domain name or circumstances warrant a change, you can rename it.
Note A My Domain uses Salesforce domain suffixes such as my.salesforce.com
for your org’s URLs. With enhanced domains, your My Domain name is also used in the
system-managed host names for your 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 Custom Domains.
- Brand Your Salesforce Org’s Domains
Understand how to include your brand in the URLs used to access your Salesforce org and its data with My Domain, Experience Cloud sites, Salesforce Sites, and custom domains. - What Is My Domain?
Showcase your company’s brand with your My Domain name. That My Domain name is used as your org-specific subdomain in Salesforce login and application URLs. For example, https://mycompany.my.salesforce.com and https://mycompany.my.site.com. Learn about the benefits of My Domain, including a custom login page and user login and authentication options. - My Domain Considerations
When you deploy a change to your My Domain, it’s important to understand the impact on URLs across your Salesforce org. Review these considerations about URL changes, feature testing, and reducing the impact to your users. - My Domain Provisioning and Deployment
Understand the provisioning and deployment process when you deploy a change to your org’s My Domain. Learn about how each step of the process impacts your user’s access to Salesforce and why it’s important to test these changes in a sandbox. - Enhanced Domains
Enhanced domains are the current version of My Domain that meets the latest browser requirements. With enhanced 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. This feature changed domain suffixes (the part after the My Domain name) to meet the latest security standards. With no instance names, enhanced My Domain URLs are easier for users to remember and don’t change when your org is moved to another Salesforce instance. Because enhanced domains meet the latest browser requirements, this feature was enforced in Winter ’24. - Partitioned Domains
With partitioned domains, My Domain host names for your Developer Edition org, demo org, patch org, sandbox, scratch org, or Trailhead Playground include a word related to the org type. For example, partitioned domains for Developer Edition and patch orgs include the word develop. Partitioned domains allow Salesforce to maximize the availability of your orgs by gradually rolling out delivery changes. And it’s easier to identify an org by a URL when the domain is partitioned. - Plan for a My Domain Change
Whether you change your My Domain to update your brand, to adopt enhanced domains, or to enable partitioned domains, the URLs that Salesforce hosts for your org change. Those changes can have a large impact, and making the required updates can seem like a daunting project. To make the process as smooth as possible for you, your users, and your customers, review the high-level steps, the recommended practices, and how to reduce the impact on your users and customers. - Change Your My Domain Details
If you don’t like your My Domain or circumstances warrant a change, 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. - Move a My Domain Name to a Different Org
You can’t use an existing My Domain name in a new org, even if you own the org where that name is currently in use. To make the My Domain name available for a new org, first remove the name from the old org - Update Your Org and Test My Domain Changes
Before you deploy a change to your My Domain, work with your users to preserve their login access to your org. To test My Domain changes, deploy the change in a sandbox. If your My Domain login URL or site URL changes, update authentication. Review and make the required updates to support the new domains. Then test access to your org and your functional workflows in Salesforce. After you complete testing in a sandbox, use the same process to update your production org. Finally, update redirection behavior for your old URLs. - My Domain Redirections
When you deploy a change to your My Domain, Salesforce redirects multiple host names automatically. Learn about the types of redirections, how to log redirections for the host names that Salesforce hosts for your org, and how you can control these redirections. - Configure My Domain Settings
Determine the user experience when logging into your Salesforce org via your My Domain. Manage user logins and authentication methods and customize your login page with your brand. Control whether users are redirected when they visit URLs that Salesforce previously served for your org. - Salesforce Edge Network
Enhance global access, performance, and security with Salesforce Edge Network. Users access your Salesforce data from all over the world, and Salesforce Edge Network delivers them a consistent experience regardless of their location. - Get Your Org Status and Upcoming Maintenance Dates with My Domain
Get information about system performance and availability from trust.salesforce.com. This trust page reports status information based on your Salesforce instance. If you don’t know your instance, use your My Domain name to look it up. - Link to Salesforce Domains in Packages
If you provide a package to Salesforce customers through AppExchange, review your code for hard-coded URLs and code that parses a known URL. The URLs that Salesforce serves for a target org vary based on the org type and configuration. Hard-coded URLs and code that assumes the format of a URL can break when a customer deploys enhanced domains, deploys partitioned domains, or changes their My Domain name. Also, URL formats vary between production orgs, sandboxes, and other non-production orgs. To ensure that your package functionality continues to work with all possible URL formats, update hard-coded URL references to relative URLs whenever possible. When a relative URL isn’t possible, use a dynamically generated host name. - Log In to Salesforce with Code
For an extra layer of security, use your My Domain login URL to access your Salesforce org with code. Compare the benefits of your My Domain login URL versus the default Salesforce login URL. And understand why we recommend that you update the login URLs that contain your Salesforce instance. - My Domain URL Formats
Your My Domain name is a subdomain used in login URL and application URLs across your Salesforce org, including sites and Visualforce pages. Understand what determines your org’s URL formats and the structure of those formats.
See Also
Did this article solve your issue?
Let us know so we can improve!

