In this post, we’ll guide you on removing or disabling RSS feed in WordPress and eliminating it from Google Index. This is particularly useful when your site contains a multitude of unnecessary links under /feeds.
How to remove or disable RSS feed in wordpress & Google Search Console
RSS Feed allows users to track new content on your website in the fastest way, it also automatically relies on an online service or specialized 3rd party RSS news reader software like Feedly, some techniques. seo called seo IFTT automatic backlink. However, not everyone uses RSS Feed, sometimes it is also a tool for parasites to clone your post. And if you do not want to use it you can remove, disable RSS feed on WordPress and Google index according to the instructions below.
1. How to disable RSS Feed WordPress with Code
The first way, you can add a piece of code in the function.php class of the theme, this will remove the unnecessary things in the plugin when you are too abusive to install many plugins.
To edit the function.php class file, you need to log in to your Hosting/VPS to manage the source code, find the function.php file in the theme you are using, add it to the bottom, and save it.
function itsmeit_disable_feed() { wp_die( __( 'No feed' ) ); } add_action('do_feed', 'itsme_disable_feed', 1); add_action('do_feed_rdf', 'itsmeit_disable_feed', 1); add_action('do_feed_rss', 'itsmeit_disable_feed', 1); add_action('do_feed_rss2', 'itsmeit_disable_feed', 1); add_action('do_feed_atom', 'itsmeit_disable_feed', 1); add_action('do_feed_rss2_comments', 'itsmeit_disable_feed', 1); add_action('do_feed_atom_comments', 'itsmeit_disable_feed', 1);
2. Disable WordPress RSS Feed with Plugin
The way for those who like plugins is to install a free plugin Disable Feeds . This plugin disables all RSS/Atom feeds on your WordPress site by redirecting all requests. It also disables the BuddyPress RSS Feed and the bbPress forum feed.
To install, log in to the admin page, click on Plugins->Install New->Upload the plugin or search for the keyword Disable Feeds in the input box “Search for expansion packs…”.
You can then change it in Settings -> Reading . By default, the plugin will redirect requests to its corresponding HTML content. For example, if a visitor visits a category’s RSS feed, they will be redirected to the category archive page. You can also choose to show only 404 errors instead, and whether or not to disable the global post feed and the global comment feed.
You can also use a Perfmatters Premium plugin, which allows you to both disable and delete RSS feeds on WordPress and Google Index, along with other optimization functions for your WordPress site.
3. Remove RSS Feed from Google search console
Chances are you don’t need all these different RSS Feed Urls in WordPress. Most blogs just use the main feed URL for the latest posts.
Also, having all these different URLs can have an SEO impact because Google crawls all these links. RSS Feed links are not indexed by Google by default, but if Google crawls all of them it can be a waste of resources and is unnecessary. The link needed, it didn’t index while it indexed a bunch of RSS Feed links. Then disable RSS feed in WordPress and Google Index right away and nothing more.
You can try checking in Google Search Console ->Pages->Page Indexing->Crawled – not indexed yet.
Same as above if you already read, open the file class function.php and add it at the end.
remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'feed_links_extra', 3 );
Above are the steps to remove, disable the RSS feed in WordPress and remove it from Google Index when your website is Google Index a bunch of unnecessary links /feeds.
– Advertising –