Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I need to access my public site from an existing domain . I have created cname records in godaddy but i am unable to access my public site. Domain name automatically redirecting me to my salesforce home screen. Let us say mahe.com is my domain in GoDaddy and I want to access my salesforce public site by hitting the URL mahe.com/AddNew

share|improve this question
Is this a Developer Edition org and have you configured the CNAME for your domain settings in Salesforce? –  bigassforce Apr 11 '14 at 11:17
I am using production. let me explain : My domain in Salesforce is test.force.com and I have a domain called mahesh.com in GoDaddy. in Godaddy I have added a cname as follows : test.force.com.organizationId.live.siteforce.com. When I try www.mahesh.com I am automatically getting my production log-in screen, but I want the public site there.My public site address in SF is test.force.com –  Mahesh Apr 11 '14 at 11:58
Can you try visiting from a different IP address (eg your phone) to see if it's just a case of stale DNS cache in between? Also, feel free to share the actual domain name and we can take a look at the DNS records to verify the configuration... –  bigassforce Apr 11 '14 at 13:30

2 Answers 2

I think the only linkages required are the Domain, the DNS record and the Custom URL in Salesforce.

Have you configured all these three things?

  1. From Setup > Domain Management > Domains, add your domain www.[your-domain].com


  2. At your DNS service, add a CNAME record on www for [your-org-id].live.siteforce.com


  3. Via Setup > Domain Management > Custom URLs fill out the Domain, Site, and Path

    Custom URL

share|improve this answer

user320 is correct. For your particular scenario, the CNAME target must be www.mahesh.com.[18charOrgId].live.siteforce.com, not test.force.com.[18charOrgId].live.siteforce.com.

Note that if you want to also serve up mahesh.com without the www subdomain, there are a couple of options:

One is to set up a 'redirect' record at GoDaddy to redirect http://mahesh.com to http://www.mahesh.com . One unfortunate 'gotcha' of DNS is that a DNS name that has other records on it, such as SOA or MX, cannot also be a CNAME record. CNAME is an exclusive record, and only one is supposed to exist on a DNS record that is a CNAME. Since mahesh.com at least has an SOA record, it cannot be a CNAME. GoDaddy and others implement a 'redirect' record as a collection of 'A' DNS records that point to a server cluster at GoDaddy that just sends http redirections to the target name when a request is made over http for mahesh.com.

The other way is to set up a certificate on the www.mahesh.com domain name, add 'A' records to mahesh.com based on the IP addresses that were reserved for the certificate, and then add mahesh.com to your organization. This requires custom https domains to be enabled, which is something that you have to request in Summer '14, but it is automatically enabled when Salesforce Communities is enabled in your organization in Winter '15 or later.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.