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

CNAME and custom web address setup

I am testing out setting up a CNAME on my sub-domain with a Sandbox 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 site domain setup on a Sandbox ( environment. Secondly, I setup the custom web address within the Sandbox Site to point to (example only).


When I go to, I get redirected to 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 Site home page (ie visualforce page). Any ideas why?


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

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: