如何清除WordPress站点Search Console的Crawled-Currently not indexed(Feed URL)错误
解决WordPress网站Feed URL在Google Search Console的「已抓取-目前未编入索引」错误
WordPress后台操作
方法1:禁用所有Feed(推荐)
- 代码方式:在主题的
functions.php文件或自定义代码插件中添加以下代码,直接禁用所有Feed访问:function disable_feeds() { wp_die( __('无可用订阅源,请访问我们的<a href="'. get_bloginfo('url') .'">首页</a>!') ); } add_action('do_feed', 'disable_feeds', 1); add_action('do_feed_rdf', 'disable_feeds', 1); add_action('do_feed_rss', 'disable_feeds', 1); add_action('do_feed_rss2', 'disable_feeds', 1); add_action('do_feed_atom', 'disable_feeds', 1); add_action('do_feed_rss2_comments', 'disable_feeds', 1); add_action('do_feed_atom_comments', 'disable_feeds', 1); - 插件方式:安装并激活「Disable Feeds」插件,一键禁用所有Feed,无需手动代码修改。
方法2:禁止Google抓取Feed
如果不想完全禁用Feed,可通过Robots.txt阻止Google抓取:
- 若使用Yoast SEO等SEO插件:进入插件的「工具」→「文件编辑器」,编辑
robots.txt,添加以下规则:Disallow: /feed/ Disallow: /*/feed/ - 若无SEO插件:进入WordPress后台「设置」→「阅读」,拉到最底部找到「搜索引擎可见性」旁的编辑入口(部分主题支持),添加上述Robots规则。
Google Search Console操作
步骤1:定位错误URL
进入Search Console后台,点击左侧菜单「索引」→「覆盖」,在「已抓取 - 目前未编入索引」分组中找到对应的Feed URL。
步骤2:处理错误
- 若需要Feed被索引:选中目标URL,点击顶部的「请求索引」,等待Google重新抓取评估(通常需要1-3天)。
- 若不需要Feed被索引:
- 确保已在WordPress后台设置好Robots规则或禁用Feed,等待Google下次抓取后,错误会自动消失。
- 也可临时移除:进入「索引」→「移除URL」,提交Feed URL申请临时移除,不过更推荐用Robots规则长期解决。
内容的提问来源于stack exchange,提问作者ClinVigilant
相关产品推荐
相关产品推荐

