We have configured our salesforce.com crm sandbox with SSO and My Domain so that going to <companyname>--dev.my.salesforce.com
automatically redirects the users to our custom login page where they use our company issued credentials to log into salesforce crm.
The problem is that I would like to have our users go to a more friendly url. i.e. salesforce.ourcompany.com. When they hit this url it would automatically direct to <companyname>--dev.my.salesforce.com
and show our custom login page. We are just setting up a simple CName alias in our internal DC (for testing) but when we do this, we always are redirected to the actual sandbox instance.
Any ideas on how to setup a simple CName to do this or is there a salesforce configuration step I'm missing?
Best Answer
You cannot setup a CNAME to
<companyname>--dev.my.salesforce.com
. Salesforce will not respect the domain name (host) you use.If you were to setup a CNAME to
<companyname>--dev.my.salesforce.com
in DNS you will get redirected to the salesforce domain (losing your vanity URL).There are a couple of salesforce features that support using a CNAME (Force.com Sites, Site.com, Communities). For those features, there is configuration that you need to do in salesforce in addition to updating DNS> My Domain is currently not one of those features.
One option you have is to use Single Sign On to create a custom login page that you host where users can login to salesforce, but after login they will use the
<companyname>--dev.my.salesforce.com
URL.