Squarespace - Getting 301s and NS_ERROR_REDIRECT_LOOP

What is the name of the domain?

bletchley.org.uk

What is the error number?

301

What is the error message?

NS_ERROR_REDIRECT_LOOP

What is the isssue you’re encountering

I’ve just moved domain registrar to Cloudflare for this domain. The website behind the domain is hosted on Squarespace. When visiting the site, I get a load of 301s, followed by a loop error (got this info from the Network tab of Firefox’s devtools/‘inspect’).

What steps have you taken to resolve the issue?

  • Checked Squarespace’s DNS checker thing, and it accepts the DNS records as I have them.

  • Went through this guidance - ERR_TOO_MANY_REDIRECTS · Cloudflare SSL/TLS docs - and confirmed that:
    – there are no redirect rules setup
    – encryption mode is Full (Strict)
    – HTTPS Always On is on, as is HSTS (on both Cloudflare’s settings and Squarespace’s)

  • As per this post - Squarespace Site suddenly generates too many redirects - I’ve checked and all DNS records are set to DNS only (not proxy)

  • Did what was suggested in this post - Community Tip - Fixing ERR TOO MANY REDIRECTS - but all I got from it was confirmation that there’s a 301, which I already knew from Firefox’s devtools. No extra info as to where the redirect actually is taking place.

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

Go to bletchley.org.uk and look at devtools/‘inspect’ the page and look at the Network tab.

The domain isn’t using the Cloudflare proxy…
https://cf.sjr.org.uk/tools/check?77f9fa496e1741e59de17b1eb97fd770#dns

The circular redirect is on Squarespace (https://www.bletchley.org.uk/ redirects to itself) so check there…

curl -I https://www.bletchley.org.uk/
HTTP/2 301
age: 62765
date: Mon, 17 Jun 2024 05:47:11 GMT
location: https://www.bletchley.org.uk/
server: Squarespace
set-cookie: crumb=Bdj+Dr8OEpjmOTcyMDNmMTkyZjFlOTMwZjcxZmI3MDJiZjQyNTg1;Secure;Path=/
x-contextid: y7DRjRTC/ZD5KC9cV
content-length: 0
1 Like

Thanks for your response, @sjr.

I didn’t mention in my post (because I forgot) but I did check that there weren’t any redirects setup on Squarespace, in the only place I think I have access to - I’m not sure if you’re familiar, but there’s a section called “Developer tools” and then “URL mappings” where it looks like you can set up redirects (among other things), but the section is blank.

I’ve already raised a ticket with them, assuming that it was on their side (but not knowing until you just gave me that info, so thank you), so hopefully they’ll be able to help.

Do you think it could be a DNS proliferation thing? While all of the new DNS records seem to have taken effect, perhaps there’s something lagging? It’s been less than 24 hours since I moved across (and then fiddled with the settings).

2 Likes

It’s not a DNS issue. It’s the webserver responding to requests for https://www.bletchley.org.uk/ by telling the browser to go to https://www.bletchley.org.uk/ (the same place), hence the “too many redirects” as the browser gives up after 20 redirections.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.