Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I set up salesforce sites to work with our customer portal and added a custom domain name to it but for some reason in any browser that I am logged in to salesforce the domain name just redirects to the default salesforce login screen.

But if i open the same domain name in an incogneto window it opens the portal just fine?

The domain is change-machine.org, a related problem is also that www.change-machine.org never works?

the cname is set up and working? any ideas?

share|improve this question
    
So in incognito, when you enter customdomain.my.salesforce.com you get the correct behavior? Have you tried using a tool like Fiddler to see what is going on? –  Mike Chale Jan 7 '13 at 15:56
    
yea i see the site just fine at customdomain.my.salesforce.com and at change-machine.org but not www.change-machine.org is there a way to get it working with both www and without –  Keith Mancuso Jan 7 '13 at 16:22
1  
customdomain.my.salesforce.com is for a product called My Domain, not Force.com Sites. –  Ryan Guest Jan 7 '13 at 17:19

2 Answers 2

up vote 2 down vote accepted

You need to save the value (www.change-machine.org) into the Custom Web Address field on the Site. (Setup -> Develop -> Sites -> [Site Name] -> Edit)

change-machine.org will never work because salesforce/DNS does officially not support CNAME records at the root (naked) domain level.. You will need to setup a redirect from change-machine.org to www.change-machine.org with your DNS provider.

share|improve this answer

This is a DNS problem on the change-machine.org domain.

Check and correct the DNS entry for the www CNAME record or the 'website redirection'-type feature if you are using one. This isn't a SalesForce issue.

One preemptive strike item to be aware of is that your site will generate an SSL Certificate name mismatch at:

you would see this mismatch after a user logs in to the Customer Portal and is using a secure session and you direct them to the vanity URL over SSL. It will however work correctly at the default address:

If you need to maintain the custom domain name while on SSL, building a reverse-proxy is the easiest manner to achieve it (easy being a relative term).

share|improve this answer
    
thanks for the help. www has a cname for thefinancialclinic.force.com, is that not correct? should the cname be for change-machine.org? i was playing with the force.com sites settings and tried it set up both with and without the www but couldnt get both to work –  Keith Mancuso Jan 8 '13 at 5:56
    
as for the ssl, I didnt think you could get ssl to work with force.com sites? I would love for it to work but can you point me to how to get the reverse-proxy setup? –  Keith Mancuso Jan 8 '13 at 5:58
1  
SalesForce is hosting a wildcard certificate for the *.force.com domain which allows for SSL on any of the force.com domains. SalesForce doesn't host customer SSL certificates because of the added maintenance effort and the requirement for a dedicated IP address allocated to the certificate. It is possible to have it done if you are providing sufficient revenue making it cost effective to justify the effort & ongoing maintenance. A reverse proxy is usually your own external Apache server running the mod_proxy modules and hosting the SSL cert, becoming a middle-man for your SFDC site traffic. –  Mark Pond Jan 8 '13 at 7:40
    
As @Ryan mentioned in another answer, a CNAME record per the DNS spec isn't valid at the root of the domain. (Valid: CNAME www.yourdomain.com Invalid: CNAME yourdomain.com) So, by this logic, your CNAME should be on the www host entry. If you also need the root address to redirect users to the www host, name registrars typically offer this as a feature that you can enable. GoDaddy DNS Forwarding –  Mark Pond Jan 8 '13 at 8:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.