Or another reason that you can get a “too many redirects” error with WordPress.
That was two hours I won’t get back. I changed the name of the business a while back because I thought Design, Innovate, Build far better represented what we do than the old name did.
Being a smartarse, I thought I could save a bit of time by just basically doing a search and replace on the entire site. That included taking a text backup of the DB and then doing a search and replace on that, before restoring it.
That should have worked, right?
The mistake I made was to capitalise “DibProjects”. At some level, wordpress checks that the URI used to access the site matches what it thinks the site is called. If there’s a mismatch, wordpress returns a 301 response directing the browser to the correct URI.
That matching, however, is case sensitive.
So https://www.dibprojects.co.uk
is different to https://www.DibProjects.co.uk
. The browser always sends lowercase, so it requests https://www.dibprojects.co.uk
. WordPress does a case sensitive comparison, concludes “hey, that’s not me” and redirects the web browser to https://www.DibProjects.co.uk
. The browser converts that to lowercase, tries https://www.dibprojects.co.uk
and we go round in a loop until someone gives up.
Just in case, you know, anyone else ever runs into this problem.