WEB: Fix redirect of blog posts
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

@datapythonista 

I think https://github.com/pandas-dev/pandas/pull/50897 broke the blog-redirects. This works locally.
Ups, not sure how I missed this.

It's a bit more complex. We've got two different kinds of posts, the ones in our website, and the ones in other blogs. The ones in our own blog are currently working, the broken ones are the ones in other blogs (like your blog or mine). Your changes makes the external posts work, but it breaks the ones we write in our own blog/website. I opened #51649 with the fix that works for both (I thought it was faster/easier to open a new PR than comment here, I hope you don't mind). Ah makes sense. Did not think about our own blog. Thx for noticing.

Yeah no worries, closing here then