Netlify not redirecting to HTTPS by default

Hi,

I just published the site: growers.com on Netlify. The domain is bring managed by Google Domains.

@ → A record to 104.198.14.52
www → CNAME to growfers.netlify.app.

I have enabled HTTPS on Netlify using Let’s Encrypt certificate. From what I read online, Netlify should automatically redirect any non-HTTPS traffic to HTTPS. In other words, if I go to http://growfers.com, I should be redirected to https://growfers.com automatically. But this is not happening. Can anyone explain why?

I understand that I can force HTTPS redirect using the configuration file, but I would prefer that Netlify do it on its own.

Thank you.

Regards,
Neerav.

Hi, @neeravbm, I’m not seeing records returned for an A record query for growers.com.

You also mentioned growfers.com and I think that is the correct domain name. If not, please let us know.

For that domain, I do see us redirecting http://growfers.com/ to https://growfers.com/:

$ curl -svo /dev/null http://growfers.com/  2>&1 | egrep -i '< (http|location)'
< HTTP/1.1 301 Moved Permanently
< Location: https://growfers.com/

If you are not seeing this happen, would you please send us the x-nf-request-id HTTP response header for the incorrect response?

It works now. For some reason, it wasn’t working yesterday. Thanks for your prompt help!

1 Like