- UnseenJapanSite: "I made a mask just for people who wear glasses. The ramen looks piping-hot as your glasses fog up.
"Difficulty le… https://t.co/lfsjgqtv1D
- carlfish: The one feature that would make Google Image Search useful again. https://t.co/0SWYqiHj0R
- donttrythis: I’m at a loss. No words. I’ve been part of two big families with Grant Imahara over the last 22 years. Grant was a… https://t.co/HrsMsqjDWU
- Peter_Fitz: Statement from ARM Chair regarding the #PalaceLetters https://t.co/gazLpqWQdn
Month: July 2020 (page 3 of 5)
- womensart1: #WOMENSART Blog:
The Glasgow School Sisters who Influenced Klimt https://t.co/n0JYhvjSHG https://t.co/j4X5xtQIPL - qkate: Honestly I think some dudes only take this bullshit "no true Scotsman" stance because they're mad when they see oth… https://t.co/EXQ7vryeX3 (in reply to qkate)
- jeamland: Startup pitch: “It’s Untappd but for goon.”
- MichelePlayfair: It occurs to me that Baldrick would really enjoy Animal Crossing https://t.co/96DahwYjOe
- MichelePlayfair: If you're just starting off with #functionalProgramming, try the Intro to #elixir workshop, those with more experie… https://t.co/6JIOCToUMI
I clicked on this blog post expecting to be inspired by Margaret and Frances’s art (which is amazing), but instead came away depressed and angry about the limitations placed on their careers.
Their marriages, in turn, lead to a dissolving of the sisters’ artistic partnership as Margaret and Frances began collaborative work with their respective partners, as was expected of dutiful wives. During such work much of the sister’s own artistic input was credited to their husbands.
Rage. 🔥
via The Glasgow School Sisters who Influenced Klimt | #womensart ♀
- yezvarn_qvilaxl: i like big butts and i cannot lie. my brother also likes big butts and cannot tell the truth. how will you escape our dungeon
- gilmae: Started watching The Good Place again. How did we not know from like, the tenth minute?
Good gracious. This morning I thought I’d just do a quick task on my migrated Lightsail sites: setting up a Lambda function to check every 5 minutes, see if the page contains some specific text, and send me an alarm if the site isn’t up. My first thought was to use CloudWatch Synthetics, but the pricing is a lot higher than just doing it yourself with a Lambda function (though you don’t get spiffy screenshots and such). I kept it simple and happily discovered there’s an existing lambda-canary blueprint available. So I set that up, pointed it at https://www.roalddahlfans.com, and tested it out. It worked great!
Then the Snook, looking over my shoulder, said, “That’ll be going through CloudFront. Why don’t you point it at the origin subdomain so you know it’s hitting the real WordPress underneath?” Okay, sure. Just to double-check it was working, I went to the origin subdomain in the browser… and was redirected to www. What. Uh, that’s not good. Thinking I had screwed something up, I tried hitting the origin subdomain of web-goddess.org… and that worked correctly, not redirecting to www. What the hell. Why were my two sites behaving differently? And why wasn’t RoaldDahlFans’s CloudFront distro barfing that I had set it up with an origin that was redirecting to itself??
Over the next seven hours – seriously – the Snook and I beat our heads against this problem. I tried turning on and off various plugins; I grepped both filesystems multiple times looking for differences; I completely rebuilt the CloudFront distribution for RoaldDahlFans; I turned SSL off and on repeatedly; I fiddled with heaps of htaccess settings… and we got nowhere. We determined that on web-goddess, if I went to https://web-goddess.org, it would be redirected to www; but for any other subdomain (foo.web-goddess.org, etc) it would not. But on RoaldDahlFans, it would always go to www regardless of whether you used a subdomain or not. It was so frustrating.
WordPress experts – I am beating my head against the wall. On one site, https://t.co/ChcOEEKcKG redirects to https://t.co/eunndVdO7O. On another, it doesn't. I can't figure out why. There's no redirect_canonical involved that I can find.
— Kris Howard 💃 (@web_goddess) July 12, 2020
Various people chimed in pointing us to various things, without much success. My buddy Peter Wilson mentioned thinking that WordPress had some special behaviour to redirect between www and non-www domains, which eventually ended up in us poring over the redirect_canonical code. The Snook noticed that another thing this module does is try to redirect you to the correct page if you type in a URL wrong. For example, if you try to access https://web-goddess.org/about, WordPress will automatically redirect you to https://www.web-goddess.org/about-me (which is the real address). However, if you do that on any subdomain other than www or non-www, it gives a 404. He went to test whether that was also held true for RoaldDahlFans, and to his surprise, the origin was not redirected! What the hell.
We determined that the origin subdomain was only redirecting to www on RoaldDahlFans on the homepage. Every other page on the origin subdomain would not redirect. So what’s special about the homepage for RoaldDahlFans.com compared to web-goddess? Well, web-goddess has the homepage set to show the most recent posts, but RoaldDahlFans uses a static page. I changed RoaldDahlFans.com to use the most recent posts, hit up the origin subdomain, and it did NOT redirect. But when I changed it back to a static page, it went back to redirecting.
SO – there is something in the way WordPress handles sites with static homepages that causes them to be redirected to the Site URL, even if you’re using a random subdomain. If you add anything to the path – subdomain.roalddahlfans.com/index.php, it won’t trigger the redirect. How weird is that?
Okay, so that finally explains the difference in behaviour between the two sites. My origin subdomain for RoaldDahlFans.com was going to redirect requests for the homepage to www, and there was nothing I could do about it. Which meant that when CloudFront needed to refresh its cache for the homepage, it would hit the origin subdomain… and be redirected to itself? Why wasn’t I seeing an infinite redirect loop crashing my site?
Cue another hour of poking around. The only way it wasn’t going to crash, the Snook reasoned, was if CloudFront was passing the Host header through to the origin as part of the request. I was not aware of telling it to do that, but…
It turns out that the AWS WordPress plugin, when it set up my CloudFront distribution, helpfully whitelisted the Host header as part of the default behaviour for the site. This is why CloudFront isn’t barfing every time the homepage cache expires.
So there you have it. What I thought would be a fifteen-minute task sent us down a rabbithole of WordPress, redirects, and content delivery network intricacies. The irony is that after all that, nothing is actually incorrect on my site! It’s all working as intended. We just didn’t know how. The only catch is that if I myself want to bypass CloudFront on RoaldDahlFans.com, I need to append /index.php when I hit the origin subdomain.
This was not how I intended to spend my Sunday… 😅
- QuinnyPig: "Legacy systems" are hereby defined as anything that was built back when @awscloud still had the box logo.
- HeartOfPluto_: Thanks to Disney+ I saw the famous #Hamilton broadway musical for the first time and I finally understand why I get… https://t.co/DlMrC3HSxo
Following on from my previous post detailing how I moved this site from shared webhosting to Amazon Lightsail, I’ve since completed a few more of my To Do list items:
- Installed the Open Graph and Twitter Card Tags plugin and set a default image for sharing to Facebook. I’ve also hooked up my Facebook app ID and secret so I can clear the cache on Facebook when updating a post on my site.
- Used the WP Sweep plugin to clean up hundreds of old post revisions. I also set a limit in wp-config which will be used going forward.
- Set up automated security patching as per this guide.
- Went through my Google Search Console to check for errors and fix where possible.
- Killed off the old shared webhosting!
- ashleymayer: Behind every powerful woman is a man bringing her a grilled cheese sandwich while she's stuck on nonstop Zooms.
- moorehn: Every woman in leadership who has been told to reduce her visibility so that a man could have more: Please stand up… https://t.co/3LqWVLKE3T
- Amys_Kapers: So back in Feb, I left my leather jacket at a conf 🤦🏻♀️
Thanks @shivafordtweets for tracking it down and… https://t.co/cI3OjwsDAM
- The_McJones: “No, don’t say ‘flesh creature’ in client facing documentation” – @desplesda to me
- sarah_federman: When ppl say their startup is "funded by Peter Thiel" in order to sell me on it 🙄 https://t.co/FUxDH5ij3N
- joeheenan: I was in the queue for Tesco.
Gammon at the front was kicking up a fuss cause he wasn't allowed in as he wasn't wea… https://t.co/006obFqx0U - bcrecworks: @trisha_gee says, '“there are way more people that don't know about something than do know about it.'
That's why '… https://t.co/e6JENcex4c
- ryanjhiggins: The symbolism of Betsy DeVos having a bookshelf with no books on it 😂😂😂 https://t.co/UMYh8Pv2Nq
- DivaDelux: The movie villain. The actual villain. https://t.co/alAeLvmtO4
- RealAziraphale: No thoughts today.
Only Crowley.
~ A.Z. Fell