robots.txt for WordPress - short & sweet

Posted in Blogging  
E-Mail This Post/Page   

On my first Wordpress site I went and added all of the files I didn't want search engines indexing to my robots.txt file thinking that it was necessary to keep them out of the SERPS. But Wordpress makes it easier than I was trying to make it by starting almost every file in the root, and all subfolders, with 'wp-'. With a 2 line robots.txt file you can block most everything that needs to be blocked.

CODE:
  1. User-agent: *
  2. Disallow: /wp-

Google Sitemaps builder for WordPress
WordPress 2.0 RC3
XML-RPC vulnerability found
Site upgraded to WordPress 1.5
Finally upgraded to WordPress 1.5.2

2 Comments on “robots.txt for WordPress - short & sweet”

Alexander on

Wow!
I was thinking about exactly this way, just was looking for a ready-made file to copy-paste :)
Unfortunately this isn’t the place to copy the whole thing directly, but anyway, nice to see like-minded folks

Alexander on

oops!

Turned out it is actually copyable!
(the digits 1,2 are not copied really)

Thanks!

Leave a Comment