Don't Change Your RSS URL
I love RSS. My RSS feed reader is the page I visit most on web, I think. So it's very frustrating when folks update their site, but don't redirect their RSS feed - please remember to do it, people.
My RSS feed reader of choice is Miniflux, which has a great progressive web app (PWA) so I donโt need to use a 3rd party app to access my feeds (although I can if I want). Itโs so simple and content focussed, I love it.
Anyway, one of the features of Miniflux that I find useful, it that it tells you when a feed breaks. Itโs not in your face, you just get a little (1)
next to the feed link if thereโs a broken feed, like this:
The problem is, this seems to happen way more than Iโd like and the vast majority of the time, itโs because the URL to the RSS feed has changed.
I have 188 feeds on Miniflux, and of those, thereโs at least a couple that break every week. So I then have to go into the feed settings, visit the site, find the new feed URL, then update it in Miniflux.
Itโs not a massive job, but itโs annoying. The most frustrating part though, is that it can be prevented easily.
How to stop your feed URL breaking
We all know that cool URLs donโt change. So setup a redirect on something like /feed
that goes to your RSS feed and add /feed
to your pageโs meta like this:
<link rel="alternate" type="application/rss+xml" title="Latest posts" href="https://example.com/feed"/>
Then no matter which platform you end up using, all you have to do is remember to update that redirect and the URL will never change for your readers.
Personally, I do this within my Apache .htaccess
file:
Redirect 301 "/feed" "/index.xml"
Just replace /index.xml
with whatever the URL for your feed is. Most hosting providers and/or CMSโs offer some kind of redirection functionality, so you should be able to find the way to do it on your site rather easily. But if youโre using Apache, like most people, the line above in your .htaccess
file should work just fine.
If youโre using Nginx, this post by Robb should help you with redirects.
Then, as if by magic, your RSS feed URL will never change and youโll never lose readers who subscribe by RSS, just because youโve decided to make a change. Win/win.
Iโve just been made aware of Feed Canary a really useful tool that monitors your RSS feed. Worth checking out if you want to monitor your feed(s).