robinadr

Avatar

WordPress Tip: Delete Feed Files

If you’re using pretty permalinks (as in your permalinks look something like /2007/03/post_slug), you can clean up your WordPress folder a bit by deleting these files:

  • wp-atom.php
  • wp-commentsrss2.php
  • wp-feed.php
  • wp-rss.php
  • wp-rss2.php

This is because as of, I believe, WordPress 2.2, these files are left behind only for legacy purposes — for people without pretty permalinks. The feed files themselves are located in wp-includes/ and with pretty permalinks, WordPress goes right to those files.

In fact, WordPress still senses the request for these files, and redirects them to the appropriate feeds even when you’ve deleted these files.

This doesn’t really save much space, but it does weed out a bit of clutter. I also deleted wp-links-opml.php because I don’t use the links features in WordPress, so it’s useless to me.

4 Comments, Comment or Ping

  1. Do you know of anyway to disable all feeds from wordpress by chance? I dnt want feeds on my site :-) anyway?

  2. Easily done with a plugin, but doesn’t seem to be one that I can find. Maybe I’ll whip one up if I get around to it, check back for the next few days.

  3. I think I found a temporary solution of deleting the line in the header.php called rss application. It has broken my feed for the time being. It shud be a temporary solution. Let me know once you get around to it….I searched a lot for the plugin, but not much luck. It has something to do with the die(); function. saw it somewhere in the wordpress support. Wordpress has decided not to incorporate this feature into the core since it can be done with a plugin, but there is no plugin! :)

  4. thanks for the tip. This will help clean up all the un-necessary files when managing a blog.

Reply to “WordPress Tip: Delete Feed Files”