WordPress:Using FeedBurner

来自站长百科
Xxf3325讨论 | 贡献2008年9月5日 (五) 17:30的版本 (新页面: You may want to use [http://feedburner.com FeedBurner] to power your feeds and make them available for everyone to subscribe to. FeedBurner is an external serv...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

You may want to use FeedBurner to power your feeds and make them available for everyone to subscribe to. FeedBurner is an external service, and is in no way related to the WordPress project. The reasons you may want to use FeedBurner are that it provides statistics regarding the usage of your feeds and for some other extra features. Should you decide to use FeedBurner you can use the following plugin, or follow the instructions.

Important

Both the feedburner plugin and the instructions below will only work if you already have an .htaccess that is created/modified by wordpress via the Permalink/mod-rewrite option.

If you have index.php in your permalink structure you have to use this hack. This hack only forwards part of the RSS feeds. To forward all of your feeds to feedburner use This hack

Plugins

The FeedBurner FeedSmith plugin or the Flagrant disregard Feedburner Plugin will simplify the process.


Note: If you have WordPress installed into a folder other than your root folder, you may encounter errors. If so, try Thatedeguy's Hack for a workaround.

Comment: The previous paragraph is probably a bit dated and likely no longer applicable.

Instructions

As mentioned above you need an .htaccess that is created/modified by wordpress via the Permalink/mod-rewrite option. Go to Options>Permalinks in the wordpress administration menu and enable "fancy" urls by adding /%year%/%monthnum%/%day%/%postname%/ at "structure".

Your blog's feed is at http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/)

Your feedburner feed is at http://feeds.feedburner.com/yourfeed

Since your blog links to the feed at http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/), your readers are reading the feed at http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/).

At this time, http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/) does not point to http://feeds.feedburner.com/yourfeed. It goes to http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/).

In order to make http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/) to take visitors to http://feeds.feedburner.com/yourfeed, you must modify your .htaccess file by following the instructions here: http://forums.feedburner.com/viewtopic.php?t=17

If you do not wish to do that, you can notify your readers that your feed is also available at http://feeds.feedburner.com/yourfeed. Then, you must trust that your readers will all manually adjust their links and feed readers. More than likely, they won't, as http://yoursite.com/wp-rss2.php (or http://yoursite.com/feed/rss2/) will continue to function normally.

The best method is to modify your .htaccess file by following the instructions here: http://forums.feedburner.com/viewtopic.php?t=17 as your readers do not have to do anything.

It really is all explained in the first post here: http://forums.feedburner.com/viewtopic.php?t=17

The following is a short quote from that document:

"If you've had a feed for any length of time, your readers are using your current feed's URL in their news aggregators How can you painlessly migrate their requests from your old server/feed to your newly burned FeedBurner feed, so all of your syndication traffic takes advantage of our services?"

Adaptation of this article with a focus on the .htaccess solution.

Adapted from The support forum