I’m currently publishing a podcast with a WordPress setup under https://domain.com/feed/podcast/podcastname/. This redirects to wherever that feed file lives.
I’d like to replace that with a website I made with Eleventy. Now I have to figure out how to redirect that folder to the feed file in a way that podcatchers get it under the exact same address, otherwise the feed breaks for people who already subscribed.
How can I do that?
I already tried using https://domain.com/feed/podcast/podcastname/index.html with both meta refresh and alternate links in it:
This works fine for redirecting browsers and some RSS readers, but not podcatchers.
I’m testing it with The Podbase Validator and Apple Podcasts, which I assume is widely used and comparatively stubborn.
If https://domain.com/feed/podcast/podcastname/ is where the feed lives, then that’s where the actual feed needs to be. If a redirect isn’t going to cut it, then the feed needs to actually be embedded in the directory’s index file. You can either do it server-side with PHP or you can do it manually by copy-and-pasting the entire feed into the index file anytime there’s a new episode.
Thank you, can you explain that in more detail?
I thought putting the feed into https://domain.com/feed/podcast/podcastname/index.xml would be what you’re describing. Are you saying that I need to put the XML contents it in the index.html instead?
Yes. Servers won’t automatically catch index.xml, so you need to make it a file that will be caught, like index.html. /feed/ on my website is a PHP script that either serves the XML feed, or serves a 304 (because some clients love to fetch incessantly).
I didn’t have any luck with embedding index.html in a way that podcatchers are okay with. But you gave me an idea! My current workaround is an .htaccess file inside that directory with DirectoryIndex podcast.xml
(Since it doesn’t catch index.xml automatically and it’s the only file in that directory, I figured I might pick any name I want)