Hi, I’m having a similar issue. I have an app that has been running for couple of months and everything seemed to be fine. It’s redirecting from http to https and even when I run lighthouse audit it says that the redirect happens. But now Google Search Console is complaining about a redirect error even though I have not changed anything since I deployed my site.
Could someone help us on this issue, please? Thanks
Probably because there are cases when the apex domain is not served by Netlify but subdomains are. The docs are pretty clear on how to set up external DNS, though.
That’s interesting. I’m certain the previous recommendation was to use an ‘alias’ record instead of an ‘a’ record. Now it appears the all mention of alias record has been removed?
That would not surprise me. Alias records for apex domain are not part of the DNS specification, and I have seen issues with using them instead of pointing the apex A record to the Netlify load balancer IP address.
Hey Ultra, i have kind of the same issue i think. When testing my website http://resetlab.fr/ with googlebot, it’s shows me 19 redirections. I registered the domain at google domains but i use Netlify DNS. Where should I add the A record for apex domain? I tried adding it on netlify but it tells me “dns_api resetlab.fr - resetlab.fr/A: 400 - link exists, all config must be empty”
Yes google is the only one having the issue it seems when crawling!
So should i just ignore the error in the google search console about the http redirection? Or is there any way to fix it?
Many thanks for the info about A records Greg
I use Netlify DNS and experienced this problem today…
So, I read up the docs from netlify about how to set up DNS, according to these docs when you use netlify DNSyou don’t have to do anything… but for external dns for an apex domain you should do this:
Create an A record for your domain.com directing towards IP 75.2.60.5
Create an CNAME record for your www.domain.com directing towards your domain.netlify.app
Set the www.domain.com as PRIMARY domain for your site
Important question is why netlify does not configure apex domain settings according to their own docs automatically while adding new domain to your site while using netlify DNS.
It seems it still does it the ‘old’ way of creating only cname records for both www subdomain as well as the apex domain.com (and therefore now causing errors with google crawling bot ?)
Everything was fine for months and suddently this is an issue, I wonder whether something changed on google or netlify end and who will fix it.
Edit: I also tested the CNAME flattening with another dns provider, still same problem, so it seems something changed on google end and they might no longer accept CNAME flattening.
I guess the ‘fix’ for now in netlify DNS and others would be to stop using CNAME flattening and:
remove CNAME domain.com entry pointing towards domain.netlify.app
and
@pduchnovsky If you are just venting, that’s fine. But if you would like someone else to be able to provide some insight to help resolve this issue, please provide your custom domain name at least.
I’ve noticed similar oddities many times before on sites using CNAME flattening, which I why I always recommend trying the combination of A and CNAME records when using external DNS.