如何在没有插件的情况下将WordPress feed重定向到FeedBurner

Update: We no longer recommend using FeedBurner because it’s a dying product full of bugs. Please read this article to see why you shouldn’t use FeedBurner and find out about the alternatives.

更新:我们不再建议使用FeedBurner,因为它是一个濒临灭绝的bug。 请阅读本文以了解为什么不应该使用FeedBurner并了解替代方法。

Recently we featured an article that showed a step by step guide to setup FeedBurner in which we shared the plugins you can use to redirect. In this article, we will show you how you can redirect WordPress RSS Feeds to Feedburner without using a plugin (This tip is for intermediate to advanced users).

最近,我们精选了一篇文章,其中显示了逐步设置FeedBurner的指南 ,其中共享了可用于重定向的插件。 在本文中,我们将向您展示如何在不使用插件的情况下将WordPress RSS Feeds重定向到Feedburner(此技巧适用于中级到高级用户)。

First open your .htaccess file which is located in your root directory (Hint: same folder where wp-config.php is located). Then paste the following code:

首先打开位于根目录中的.htaccess文件(提示:wp-config.php所在的文件夹)。 然后粘贴以下代码:


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-] )?/?$ http://feeds.feedburner.com/wpbeginner [R=302,NC,L]
</IfModule>

By the way, don’t forget to change the feed URL to your own Feed URL otherwise you will be redirecting users to our Feeds.

顺便说一句,不要忘记将提要URL更改为您自己的提要URL,否则您会将用户重定向到我们的提要。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-redirect-wordpress-feeds-to-feedburner-without-a-plugin/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值