I set the DNS records according to the guide on Heroku, where the website is hosted. So the www domain is added as CNAME record. Based on what I’ve read all the requests to root domain should be processed automatically thanks to CNAME flattening, but it doesn’t happen.
I see several A records added automatically for the root domain and pointing to different IP addresses, but accessing the website by root domain produces all kinds of errors. Among them are 403, 404, 522 etc, depending on the browser and time of visit. Or more importantly, the root domain redirects to absolutely different websites, like AOL.com, etc. This happens randomly and doesn’t follow any logic.
How can I fix this? I’d be glad to provide additional details if needed. Thanks!
CNAME at root isn’t compatible with many hosts, so they generally ignore it. Which is why I recommend the www redirect. Your www site works, so the Page Rule I linked to should get your site working.