Loading

Custom domain and CNAME redirection without www in URL

Publish Date: Aug 29, 2024
Description
When you have website hosted on Force.com Sites using Custom Domain with related CNAME record with our registrar. 

When sites.com hosted website works well when you go to example (www.abc.com.au) 
However, when loging to abc.com.au (without the www) is not working and is redirecting to salesforce login page.(eg:https://na9.salesforce.com/).
Resolution
NOTE: The information included in this article applies to non-secure (HTTP) domains, for secure (HTTPS) domains, read our Documentation about Naked Domains.

This is Working as Designed.
 
 There are 2 possible ways customer can meet their requirement:
1. Some (possibly all) Domain Registrars require a separate CNAME record for the address with and without the www. 
2. Customer would need to redirect abc.com.au URL themself or direct it to a second Force.com Site that uses the same pages or redirects.

Customer can use a DNS forwarder to setup the live.anz.com domain.

Please follow the links mentioned below to know about the 'Force.com Sites Best Practices'
  1. Best Practice: Sites and record identifiers
  2. Setting up Salesforce Sites
  3. Add a Domain
  4. Naked Domains
Knowledge Article Number

000385794

 
Loading
Salesforce Help | Article