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
Drew1815Drew1815 

CNAME and custom web address setup

I am testing out setting up a CNAME on my godaddy.com sub-domain with a Sandbox Force.com Site. I setup a CNAME for the subdomain. For example, the subdomain is called "sbx", so I setup a CNAME that maps "sbx" to my free force.com site domain setup on a Sandbox (test.salesforce.com) environment. Secondly, I setup the custom web address within the Sandbox Force.com Site to point to sbx.godaddydomain.com (example only).

 

When I go to sbx.godaddycomain.com, I get redirected to cs9.salesforce.com and not the Site. So it looks like some aspect of the CNAME works since it loads the salesforce sandbox domain (cs9), but its not directing me to the Force.com Site home page (ie visualforce page). Any ideas why?

Ryan-GuestRyan-Guest

Custom web addresses (CNAMEs) aren't supported in sandbox.

OGHGOGHG
You can use the same documentation as with a production org. You only need your 18 digit Org ID (not the standaard 15 org ID use select Id from Organization in your Developer console) for your sandbox and after that you can complete the normal process described here:

https://help.salesforce.com/apex/HTViewSolution?urlname=Setting-Up-Custom-Domains-for-Salesforce-Sites-and-Setting-up-HTTPS-Support-for-Branded-Custom-Domains&language=en_US