So, I had a minor disaster. This is what went wrong and how I fixed it.

We use the amazing WordPress Redirection plugin. We recently started a survey and the best way to contact the participants was by letter. We had to include a URL to the survey. Some people were mistyping the URL. For example:

/direct-payments-servey
/direct-payments-urvey
/directpayment-survery/
/directpaymentsurvey
/directpaymentssurvey

The correct URL is /direct-payments-survey/

To fix this, at 8:10am this morning, I threw up a very hasty regex redirect and went to have my breakfast, slapping myself on the back. It matches all the errors and, I thought, would catch most other typos. Here it is:

^/(directpayment|direct-payment).*

Problem is it also caught the target URL and an endless redirect ensued. The page was down for 9 hours.

After my trials a little while back trying to get to grips with not matching strings in a regex I had a good idea for how to fix it.

^/(?!direct-payments-survey)(directpayment|direct-payment).*

It was that easy. Here is the regex on regex101 as usual.

The silver lining here is that I now have a very reusable fix when I need to match something very close to the target URL. I’ve had this problem in the past and often just created a completely different URL. Even then this was not foolproof as WordPress keeps it’s own records of old URLs and redirects.

I do like celebrate a victory but today I must acknowledge a failure. I put a pretty important web page into an endless redirect loop with some fast and loose admin. Sadly, I made that change at 8:10am and I only just fixed it… 😭

I use Chrome once a month at work to access analytics from the major social media platforms at it almost always breaks. How is this the world’s most popular browser?

Watched Invasion of the Body Snatchers (1978) from letterboxd.com
The first remake of the paranoid infiltration classic moves the setting for the invasion, from a small town to the city of San Francisco and starts as Matthew Bennell notices that several of his friends are complaining that their close relatives are in some way different. When questioned later they themselves seem changed, as they deny everything or make lame excuses. As the invaders increase in number they become more open and Bennell, who has by now witnessed an attempted "replacement", realises that he and his friends must escape or suffer the same fate. But who can he trust to help him and who has already been snatched?

You’ve got to love how this builds. It keeps a lot of its shocks back for the final third and it’s way more effective. The visual effects are, frankly, excellent.

Sidenote: Amazon Prime was telling me this was a PG! It surely is not.

I have a lot of love for the noisli app but their choice of colours, especially their “brand” green (this green) is an accessibility nightmare. Most of their colour choices fail even the basic contrast checks.

Also, on a personal note, I wish they would add some darker colours and respect “dark mode” or “night time”!