How can I disable WordPress RSS feed, like http://www.domain.com/blog/feed and redirect to my home page
You can simply add following codes to your theme’s functions.php file
function custom_disable_feed() { wp_redirect("/"); } add_action('do_feed', 'custom_disable_feed', 1); add_action('do_feed_rdf', 'custom_disable_feed', 1); add_action('do_feed_rss', 'custom_disable_feed', 1); add_action('do_feed_rss2', 'custom_disable_feed', 1); add_action('do_feed_atom', 'custom_disable_feed', 1); add_action('do_feed_rss2_comments', 'custom_disable_feed', 1); add_action('do_feed_atom_comments', 'custom_disable_feed', 1);