Adding the itunes:new-feed-url bit is as easy as editing your wp-rss2.php file. Just open it up in a text editor and add the following to it, right after the <channel>:
<itunes:new-feed-url>http://feedburner.com/whatever</itunes:new-feed-url>
Just that simple. Next time the iTunes store checks your feed, it’ll switch to your feedburner one.
The purpose of the 301 is to make anybody who has already subscribed to your feed look at the new location. The Feedburner WordPress plugin actually sends a 307, which is a temporary redirect. A 301 is a “permanent” redirect, which tells clients to change their saved links. You can either use the feedburner plugin and edit it to have “301 Permanent Redirect” instead of “307 Temporary Redirect”, or you can make some specific changes to your .htaccess file. Either way.
Thread Starter
mbritt
(@mbritt)
I tried what you have above and I learned that you also have to insert this line into the wp-rss2.php file:
xmlns:itunes=”http://www.itunes.com/dtds/podcast-1.0.dtd” version=”2.0″
I inserted this line and now the feed won’t validate at all. Here’s where I put the line above:
<rss version=”2.0″
xmlns:content=”http://purl.org/rss/1.0/modules/content/”
xmlns:wfw=”http://wellformedweb.org/CommentAPI/”
xmlns:dc=”http://purl.org/dc/elements/1.1/”
xmlns:itunes=”http://www.itunes.com/dtds/podcast-1.0.dtd” version=”2.0″
>
I’m getting a “duplicate attribute” error which I think is due to the fact that version = “2.0” appears twice. However, when I delete either one, the itunes tags aren’t recognized and the feed won’t validate. Please help!!
Michael
Removing one is the correct thing to do. It should look like this in your code:
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
<?php do_action('rss2_ns'); ?>
>
If it still doesn’t like it, try this (same thing, different case):
http://www.itunes.com/DTDs/Podcast-1.0.dtd
.