Domain Management
Domain Management in Salesforce allows you to configure domains and their site associations. Salesforce sites and domains have a many to many relationship. You can associate a domain with 50 sites and associate a site with 100 domains.
A custom domain is supported in a non-sandbox environment only, but you can configure a domain in sandbox and then move it into production.
For more information, see https://help.salesforce.com/apex/HTViewHelpDoc?id=domain_mgmt_overview.htm&language=en_US
Adding and Managing Domains
You may add a domain and attach certificates associated with it in your Salesforce organization. You can attach a certificate only if it is already added to Salesforce through Certificate and Key Management setting in the Salesforce Setup.
To add a domain:
- Login to Salesforce as an Administrator.
- Navigate to Setup > Administer > Domain Management > Domain.
- Click Add a Domain, and enter an appropriate domain name.
- Add a certificate if you already configured a CA signed certificate.
CNAME and Domains
CNAME or Canonical Name is an entry in DNS (Domain Name System). CNAME is used as an alias for a domain name. In order to add or switch the CNAME for a domain, it is necessary to ensure that an entry for that CNAME is present in the DNS.
The CNAME entries vary depending upon the Salesforce release during which the entries were made. The following table gives an overview about CNAME naming convention as per Salesforce release.
Salesforce Version | CNAME Value |
---|---|
Before Summer 13 | fullyQualifiedDomainName.live.siteforce.com |
After Winter 14 | fullyQualifiedDomainName.18DigitOrgId.live.siteforce.com |
Adding and Managing Custom URLs
Custom URLs are made up of a domain name and a custom path. There can be a same custom path across multiple domains, but not in the same domain.
To add a custom URL:
- Login to Salesforce.
- Navigate to Setup > Administer > Domain Management > Domain.
- Click the required domain.
- Click New Custom URL, and enter an appropriate domain name, site name, and custom path.
- Click Save.
Benefits of using My Domain
Following are the benefits of using My Domain feature in Salesforce:
- Customize the login page with your own binding
- Use Salesforce organization as an identity provider for single sign-on into third-party applications or other Salesforce organizations
- Preserve deep links (such as https://<mydomain>.my.salesforce.com/001/o) through any future organization splits and migrations.
- Restrict users from logging in through login.salesforce.com.
- You can block application page requests that don’t use the new Salesforce domain name URLs, let your users know they need to either update old bookmarks or create new ones for the login page as well as any tabs or links within the application. Users will be required to use the new URLs immediately if you change your login redirect policy to Not Redirected.