Is it possible to remove feeds from rewrites?

Why are you removing rewrite rules? These should not noticeably impact performance, unless there were thousands of entries.

Yes, you can remove them, but you will break any functionality associated with those urls, and you won’t improve your site’s speed at all. If you’re concerned about site speed, check out YSlow and Google Page Speed Insights instead.

If you’re dead set on removing rules, you can do that one of two ways.

  • If they are written into your .htaccess file, you can edit that and remove the rule. Be sure to backup .htaccess before doing this.
  • You could also remove anything added via wordpress hooks in your theme functions.php file, or a plugin. This code will run every time the page loads and (ironically) risk making your problem worse (though I’d bet it would still be unnoticeable). Check out the generate_rewrite_rules action to do that.

Here’s some sample code:

add_action('generate_rewrite_rules', 'my_remove_rules');
function my_remove_rules( $wp_rules )
{
    unset( $wp_rules->rules[ 'some_rule' ] );
}
  • If any of these rules are added by a plugin, you could also disable that plugin, and then make sure to flush your rewrite rules. You can flush (that is… re-create) your rewrite rules by saving the permalinks page under “settings” in wp-admin.

Good luck!