+ Start a Discussion
Morgan MarcheseMorgan Marchese 

Mask My sitename.force.com URL with a URL from our corporate website?

We have a ligthning community created using Community Builder. We are trying to mask the URL (https://unfriendlyUrl.force.com/path) with our own corporate URL (https://commsite.harms123.com). I have been following this salesforce help documentation, as well as various posts on the dev forum and Salesforce Stack Exchange. Here is the official SFDC documentation:
https://help.salesforce.com/HTViewHelpDoc?id=siteforce_domains.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=siteforce_domains.htm&language=en_US)

So far this is what we've done:
  1. We created a CNAME subdomain on our corporate website, lets call it community.corpsite.com.
  2. We pointed that CNAME to community.corpsite.com.OUR-18-DIGIT-ORGID.live.siteforce.com as instructed in the guide
  3. We went to Site Configuration | Domains in Set​up and created community.corpsite.com as a domain.
  4. We went to Site.com Studio, Site Configuration | Domains and made sure that the custom domain (community.corpsite.com) was listed.
  5. We published the site through both Site.com Studio AND Community Builder

When I go to my browser and go to community.corpsite.com, it redirects me to https://unfriendlyUrl.force.com/path, but doesn't mask the URL. This results in our customers having a poor branding experience, since we ask them to go to community.corpsite.com but they are being redirected to the force.com URL.

What am I doing wrong? From what I read online in their documentation, they seem to indicate that this is possible, but I can't get it to work. Is this possible? Where do I start, what is my best place for documentation on this? Could use some help, been struggling with this all day.

Thanks for your time
Ashish DevAshish Dev
I think you needs to consider settings at your Domain provider. You need to Forward and Mark the Domain. For example refer godaddy configuration https://in.godaddy.com/help/manually-forwarding-or-masking-your-domain-name-422. Similar settings will be available for other domain provider.
Morgan MarcheseMorgan Marchese
I don't think that's what we're looking for, and my provider also has no concept of 'forward and mask'. We followed the Salesforce instructions to create a CNAME, which should be acting as the alias:

A Canonical Name record (abbreviated as CNAME record) is a type of resource record in the Domain Name System (DNS) used to specify that a domain name is an alias for another domain, the "canonical" domain. All information, including subdomains, IP addresses, etc., are defined by the canonical domain.

However, it is instead acting like a forwarder, forwarding me to the force.com address rather than aliasing it. Forwarding and masking won't work in our situation (that I'm aware of), because the masking would go away as soon as you click on any other link on the community site, wouldn't it?

Christian Szandor KnappChristian Szandor Knapp
We would also love to mask certain parts that are hosted on shoreforce.shore.com with our companies url.

By using MyDomain, CNAME settings and a URL Rewriter Class for our public force.com site, we can achieve a branded link like e.g. service.shore.com/order/123456

but as soon as the link is opened, we see

myDomain.force.com/order/123456 - which is not at all branded nor brandable, since some else took our favorite myDomain name. 

Can this be done?