How to Create Subdomain and Customize Login Page in Salesforce



Create our own subdomain for our Salesforce org to better manage login and authentication. With a subdomain, we can include our company name in our URL, for example, https://ourcompanyname.my.salesforce.com. We can also customize our login page, such as add our logo, change the color scheme, or add our own content on the right side of the login page.

Step-1: From Setup, enter My Domain in the Quick Find box, then select My Domain.

Step-2: Enter the name that we want to use for our My Domain subdomain. Our name must contain at least 3 characters and no more than 32 characters, it can include letters, numbers, and hyphens. But we can’t start the name with root, status, or a hyphen.

Step-3: Then Check Availability, If our name is already taken, choose a different one.

Step-4: Click Register Domain. We receive an email when our subdomain name is ready for testing. It can take a few minutes.

Subdomain

Step-5: Once the email is received click on the Activate email. Or from Setup, enter My Domain in the Quick Find box, then select My Domain and click Log in button or refresh the page after few minutes.

Login

Step-6: Then click Deploy to Users button and click OK on popup alert. Now our domain will be created and URL will be changed with domain name.

Salesforce User

Step-7: After that go to Authentication Configuration, click Edit.

Step-8: Then we can customize our logo, click Choose File and upload an image file. Images can be .jpg, .gif, or .png files up to 100 KB. The maximum image size is 250 px by 125 px.

Login Page

Step-9: Also we can customize our login page background, click Select a color and choose our hexadecimal color code.

Step-10: To display content in the right frame URL, enter a URL.

By default, the right side displays the current Salesforce Promotions in an iframe. The iframe creates an inline frame, which embeds an HTML document into the current page. We can show our own content by supplying a URL that uses SSL encryption and the https:// prefix. The iframe dynamically expands to fill about 50% of the page. To build our own custom iframe using responsive web design, use the My Domain Sample template. For an example of a right-frame URL, go to https://sfdclogin.herokuapp.com/news.jsp.

Step-11: Finally Click Save.

Click here to view more Salesforce blog post.