function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AC3AC3 

CNAME records for custom domains

We were planning to do a branded domain name for our Sites implementation (let's say example.com).  We reserved the domain name but have not pointed it at anything (no DNS records).  I asked for a CNAME record to be created for example.com to point to example.force.com, and my network folks tell me they can't do a CNAME record for example.com -- it has to be for www.example.com or somesuch subdomain. 

 

Is that correct?  And in that case, anyone leaving off the www (or whatever) would not get our site to resolve, correct?  (Unless I host example.com and do a redirect or something.)

 

I want to avoid having any of our servers involved in this.  Any suggestions?

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

yes, you will need to (301) redirect abc.com to http://www.abc.com and the create an alias for www to abc.force.com

After the alias is in place se tthe custom web address of your site as www.abc.com 

All Answers

Scott JorgensenScott Jorgensen

You may have gotten some inaccurate guidance, or you may have some restrictions that are specific to the provider of your domain registration.

 

Here's an example:

 

http://colgincellars.com which ends up at http://www.colgincellars.com which is a CNAME for http://colgin.force.com 

AC3AC3
Thanks Scott.  Looks like you're doing what I was hoping to avoid -- colgincellars.com redirects to www.colgincellars.com, which has a CNAME record of colgin.force.com.  Looks like I may have to do that (or hope nobody leaves off the www.).
BulentBulent

yes, you will need to (301) redirect abc.com to http://www.abc.com and the create an alias for www to abc.force.com

After the alias is in place se tthe custom web address of your site as www.abc.com 

This was selected as the best answer