Feed Ho
My Internet pal Seth Brown notified me that my atom feed was dead. Dead for a really long time. When I migrated to Pelican, I created a 301 redirect for all of my feeds. Or at least I thought I did. Here’s the lines from my .htaccess that I thought worked.
:::text
Redirect 301 /feed/ /feeds/all.atom.xml
Redirect 301 /feed/atom/ /feeds/all.atom.xml
But that was not working for the atom feed. I’m not sure why I thought an explicit redirect was the right way to go. Regex matching is much more effective and actually works. Here’s the updated .htaccess file:
:::text
Options +FollowSymLinks
RewriteEngine on
RedirectMatch 301 (/category/)(.*?) /tag/$2.html
RedirectMatch 301 (.*\d{4}/\d{2}/.*?)/ $1.html
RedirectMatch 301 (/wp-content/uploads/)(.*) /uploads/$2
RedirectMatch 301 /feed/.* /feeds/all.atom.xml
ErrorDocument 404 /pages/404-page-not-found.html
ErrorDocument 500 /pages/error-500.html
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes
If you subscribed to my atom feed and thought I stopped posting in August, boy were you wrong. You just received my last five posts (or 20).