[SalesForce] Custom Url is not working for force.com sites

User has a custom url for sites but it is not working.

For Example:

Create one Custom Domain 'mydomain.org' in salesforce sandbox.

Create a new force.com site 'myIdeas' and assigned default home page as'Registration'. Create new Custom URL for this site with the above domain (mydomain.org) and path '/reg'.

When previewing or testing the myIdeas site Custom URL, user doesn't see the custom url as 'http://mydomain.org/reg/Registration' instead it shows up as http://mydomain.org/reg/sites/servlet.SiteDebugMode?sitedebugmode=z&rand=85651. Why is the custom url not showing up correctly? See below screenshot:

enter image description here

How to make the url 'http://mydomain.org/reg/Registration' is accessible.

Can any one have any thoughts on this.

Thanks,

Best Answer

First of all you can not test Custom Domain in Sandbox environment. You have to do it in production org only. Also note that custom root domains (e.g. http://mydomain.org) can not be added in Salesforce. You can only add sub-domains like http://www.mydomain.org. The main steps are as follows.

  1. First create a CNAME record for www.mydomain.org as www.mydomain.org.orgid18.live.siteforce.com in your DNS server.
  2. After the CNAME is created in DNS server, add the domain in your org Setup > Domain Management > Domains > "Add a domain".
  3. After adding the domain go to Setup > Develop > Sites. Open your site in edit mode by clicking on Site Label. Add "New Custom URL" by selecting http://www.mydomain.org from the list.

The details steps are given in this link. Hope this helps.

Related Topic