How to disable feed url

#581544
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math support. I’m sorry you’re facing some problems with feed URLs on your site.

    Feed URLs are generated by WordPress, not by Rank Math. They are meant for RSS feed readers and crawlers to access your content, not for regular visitors. They are also ignored by Google, so they don’t have any impact on your SEO.

    But if you don’t want them at all, you can get rid of them in two ways:

    • You can install and activate a plugin like this one: https://wordpress.org/plugins/remove-rss-feed/. It will let you disable the RSS feeds on your site with just one click.
    • You can add some code to your site that will block the RSS feeds and show an error message instead. You can copy and paste the code below to your theme’s functions.php file:
      function disable_wordpress_feeds() {
          wp_die( __('No feed available, please visit the homepage.') );
      }
      
      add_action('do_feed', 'disable_wordpress_feeds', 1);
      add_action('do_feed_rdf', 'disable_wordpress_feeds', 1);
      add_action('do_feed_rss', 'disable_wordpress_feeds', 1);
      add_action('do_feed_rss2', 'disable_wordpress_feeds', 1);
      add_action('do_feed_atom', 'disable_wordpress_feeds', 1);

      This should stop all the feeds on your site from working.

    I hope this helps you solve your issue. If you have any other questions or concerns, please don’t hesitate to reply to this ticket and I’ll be glad to help you further.

    Thank you for choosing Rank Math. Have a wonderful day!

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘How to disable feed url’ is closed to new replies.