Boost recurring donations this giving season with the new upsell prompt!Learn How >>

404 Errors Related to Variations in Custom Domain

updated

Scenario

You have a custom domain (example.com) and some variations like http://example.com (without the"www") are resulting in a 404 error on the front end.

Possible Cause

Some DNS providers do not allow for CNAME flattening. CNAME flattening allows an apex address, like example.com, to have a CNAME that points to something like www.example.com

Solution

If you have Cloudflare as your DNS host, below are the steps you can follow to help alleviate this issue. 

  1. Create one CNAME record that points example.com to www.example.com
    1. Replace 'example.com' with your custom domain
  2. Create one page rule, that says if "example.com/*" is in the URL, redirect with a 301 rule to "https://www.example.com/$1"
    1. Replace 'example.com' with your custom domain

If you are still having trouble with the above, please submit a ticket and we'll be happy to help! Make sure to include a screenshot of CNAME records you have in place and advise if you have any A records created within Cloudflare.

Have more questions? Submit a request
Article is closed for comments.