Greetings!
I have a domain (zivkarmi.com) registered with Dreamhost, and wanted to connect it to my site recently published to Netlify. My Netlify site is at zivkarmi.netlify.app.
In Dreamhost, I created a CNAME record for www
with value set to zivkarmi.netlify.app.
.
This worked for pointing www.zivkarmi.com
to the Netlify site. However, it didn’t work for just zivkarmi.com
.
After some reading and discussion with Dreamhost support, I came across a Netlify help article that said I should create an A record. So in addition to the CNAME record, I also have an A record for my domain on Dreamhost pointing to 104.198.14.52
.
While I was working on the solution with Dreamhost support, I also at some point selected Netlify DNS for my domains. I now have the following settings under Settings > Domain Management > Custom Domains:
Now, for the issue: Going to www.zivkarmi.com
correctly loads the website, over HTTPS. However, entering the URL without the www.
results in a “Your connection is not private” error. I would prefer that this URL redirect directly to the https://www.
version of the website, but instead it simply redirects to https://zivkarmi.com, and displays the error.
I should also mention I have a _redirects
file in my site root, but I am not sure if it is setup correctly, or if it is even working. When I download the deployed version of the website, there is no _redirects file present. The contents of that file are as follows:
# Source --> Target
http://zivkarmi.com/* https://www.zivkarmi.com:splat 301!
https://zivkarmi.com/* https://www.zivkarmi.com/:splat 301!
# Redirect for SPAs
# Source: https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps
/* /index.html 200
Thank you in advance for any help. I am happy to provide further information if needed.