+ Start a Discussion
Nazeer AhamedNazeer Ahamed 

Custom Domain

How to update CNAME to implement custom domain for site pages

 

I do have site page named mysite.na1.force.com

I do have registered domain uisng godaddy as mycompany.com

 

I have created sub domain and setup forward to mysite.ca1.force.com

 

When I launch browser with subdomain.mycompany.com it takes me to mysite.na1.force.com(URL visivle in browser)

 

I dont want end customer seeing force.com url - how to make that happen. any idea?

 

Here I am missing somethign with CNAME but not sure what exactly to do !!!

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Nazeer AhamedNazeer Ahamed

The answer is very simple, I didnt expect it to be end in this way.

 

http://wiki.developerforce.com/page/Force.com_Sites_Best_Practices#highlighter_44203 

 

""" Note that the CDN integration is only valid for active, production orgs. Sandbox orgs, Prerelease orgs, and Developer Edition orgs do not have CDN integration."""

All Answers

bob_buzzardbob_buzzard

Have you populated the custom web address field in the site detail on Salesforce?

Nazeer AhamedNazeer Ahamed

Yes - I did. Custom web address is subdomain.domain.com.

 

When I launch subdomain.domain.com now it display "Thanks for your response" it's not exactly taking me to the site page but to mysite.na1.force.com. Expecting to go mysite.na1.force.com/site_home

Nazeer AhamedNazeer Ahamed

Further, I didnt do this step mentioned in the guide

"Create CNAME records with your registrar to point your top-level domain and your subdomains to your Force.com domain"

 

What I did is, created a sub domain and setup auto forward rule to mysite.na1.force.com.

 

it's not working..

bob_buzzardbob_buzzard

That may well be the issue - as you are fowarding rather than using a cname redirect they are considered separate domain names.  I've used the cname mechanism a few times - our website http://www.brightgen.com is set up that way and the URLs appear as we expect.

Nazeer AhamedNazeer Ahamed

I still didnt get this done.

 

Now I created cname: test2

it points to : mysite.qa.cs3.force.com

 

My site page, custom web address is test2.mycompany.com

 

when i launch test2.mycompany.com, it takes me to SFDC login screen  as https://cs3.salesforce.com

 

any idea, thanks for your response.

bob_buzzardbob_buzzard

What happens if you open mysite.qa.cs3.force.com directly - does that work?  I wouldn't expect to get the login page even if there was a problem with the site redirection.

Nazeer AhamedNazeer Ahamed

The answer is very simple, I didnt expect it to be end in this way.

 

http://wiki.developerforce.com/page/Force.com_Sites_Best_Practices#highlighter_44203 

 

""" Note that the CDN integration is only valid for active, production orgs. Sandbox orgs, Prerelease orgs, and Developer Edition orgs do not have CDN integration."""

This was selected as the best answer
bob_buzzardbob_buzzard

Ah yes - fallen for this a few times myself.