404 on apex domain but 200 on subdomain

I have setup my hugo site on netlify and works amazingly well.

I added my own domain bought elsewhere and changed the nameservers there to point to netlify.

In netlify dashboard I added the domain and I now have:


These are not editable as they are system DNS entries apparently.

If I visit https://blog.jonathanchannon.com I get my blog but from my understanding in netlify if I visit https://jonathanchannon.com I would also get the blog appear? Is that assumption correct?

Currently if I visit https://jonathanchannon.com I get a 404

The output from a curl request is below

*   Trying
* Connected to www.jonathanchannon.com ( port 443 (#0)
* ALPN, offering http/1.1
* WARNING: disabling hostname validation also disables SNI.
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: *.netlify.com
* Server certificate: DigiCert SHA2 Secure Server CA
* Server certificate: DigiCert Global Root CA
> GET / HTTP/1.1
> Host: www.jonathanchannon.com
> User-Agent: curl/7.68.0
> Accept: */*
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Cache-Control: no-cache
< Content-Length: 9
< Content-Type: text/plain; charset=utf-8
< Date: Fri, 08 May 2020 14:15:35 GMT
< Strict-Transport-Security: max-age=31536000
< X-Content-Type-Options: nosniff
< X-Frame-Options: ALLOWALL
< X-Request-Id: 5ef87c6d-77fa-4435-b342-ecc375632a9d
< X-Runtime: 0.003234
< Age: 2
< Connection: keep-alive
< Server: Netlify
< X-NF-Request-ID: 402cfa8d-a35b-4391-abbc-ca5ec6ccdefa-9027806
* Connection #0 to host www.jonathanchannon.com left intact
Not Found%

My netlify site name is: https://admiring-shannon-b4a790.netlify.app/

Found the answer. Needed to create a domain alias in settings

1 Like

i just pulled up your site and it definitely seems to work now :+1: