Error: HTTP redirects to www first `http://ari-web.xyz` (HTTP) should immediately redirect to `https://ari-web.xyz` (HTTPS) before adding the www subdomain. Right now, the first redirect is to `https://www.ari-web.xyz/`. The extra redirect is required to ensure that any browser which supports HSTS will record the HSTS entry for the top level domain, not just the subdomain.
But sometimes it just works… I am confused why or how:
Status: ari-web.xyz is pending submission to the preload list.
By chanse if you try enough times you will get red,
is it an issue with my redirects and stuff? …
I’m just like really confused, some people get green, some red, I get both, just a whole mess, why is that, can I somehow fix it?
I only submitted it few days ago, but I only started getting weird errors today
Thanks for any help
Even after playing around in dev tools I can see the random behaviour, sometimes I get a direct redirect to www subdomain over https, sometimes I get redirected to https (top level) then https (www), very confusing, my dns seems fine, is it maybe netlify’s fault? not sure
You are wishing to use ari-web.xyz as the primary/default domain, not www.ari-web.xyz? Currently www.ari-web.xyz is configured as the primary domain. You can change this behaviour in the Custom Domains section of the UI
@coelmay I am having trouble reproducing it in the browser,
I can only really reproduce it in the HSTS Preload List Submission website, which does not show any headers… only red and it’s quite random, though I have reproduced it before, any way to get back the request which I have reproduced the bug or whatever it may be? it should be there as in the making of this thread I did reproduce it
Given the sheer number of requests Netlify would see in a day, it is likely near impossible (very time-consuming at least) to find a specific request based on an error message. That’s why the x-nf-request-id is required for troubleshoot purposes.
Another question is how many times you have tried submitting your site? You say sometimes you get green, sometimes red (with error) suggesting you are doing it multiple times. There is only a need to do it once is there not?
The red happens randomly, I tried checking the status of the site (submitting) at least like 10 times to try to reproduce it, but usually like 1 is enough, it’s completely random and more frequent at times
I’m facing the same problem. When I do curl -I http://material-ui.com/ it redirects directly to https://mui.com/core/ without doing a hop to https://material-ui.com/ first. I have the following in my _redirects configuration: