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
Jamz_2010Jamz_2010 

Domain Name Masking

Hi,

 

Is there any way within Salesforce Sites to get the domain name to appear as my main domain name but still have a path to each separate page (i.e. not using an iFrame)?

 

Thanks

 

James 

Best Answer chosen by Admin (Salesforce Developers) 
RyanGuestRyanGuest

Documentation for registering a custom web address can be found here:

 

http://www.adnsandbox.com/df08/sites_using_custom_domain.pdf

All Answers

paul-lmipaul-lmi
this isn't possible, and definitely isn't possible if using SSL for sites.  you can use your own domain for a site, but using the root domain limits you to hosting root domain content on the platform.  if you have content elsewhere, but the primary content is on force.com, you could subdomain the other content instead.
Jamz_2010Jamz_2010

Thanks for that,

 

With using your own domain for Sites, how do you do this? is there any documentation on this?

 

Thanks

 

James 

RyanGuestRyanGuest

Documentation for registering a custom web address can be found here:

 

http://www.adnsandbox.com/df08/sites_using_custom_domain.pdf

This was selected as the best answer
lbasclelbascle

Hi Ryan

 

Thanks for that pdf, really useful!!

 

but am i understanding correctly: 

 

how does a subdmain redirects to a Site?

i.e a CNAME can only be mycompany.force.com, not mycompany.force.com/mysite

 

we have a Site called http://cafod.force.com/worldgifts but we don't have anything on http://cafod.force.com (only error page)

 

how do we link from http://worldgifts.cafod.org.uk to http://cafod.force.com/worldgifts without redirecting people to an error page?

 

 

BulentBulent

all the cnames must point to your force.com domain name not to your site url.

after the cname is in place you need to drill down to the site that you want to use your custom domain name and populate the custom url field with your custon domain name 

 

You can create up to 25 sites, all cnames leads to your main force.com domain  name and we look at the site definition to find out which one is associated with our custom domain name.