Archive for March 8th, 2007

Wordpress robots.txt file

A robots.txt file is a file that is used to keep web pages and files from being indexed by search engines. I decided I needed one on my blog to stop duplicate the rss feeds being indexed.
To create your robots.txt file open up notepad and save the file as robots.txt.

Here is the code:

User-agent: *
Disallow: /wp-
Disallow: /feed/
Disallow: /trackback/

The first line “User-agent: *” means that all the search engine robots (from Google, Yahoo, MSN and so on). Search engine robots are what gather the data for search engines.

“Disallow: /wp-” means don’t index the pages in the root folder (also known as home directory) with the starting name wp-.

“Disallow: /feed/” don’t index the feed. This stops your blog getting penalized for duplicate content.

“Disallow: /trackback/” don’t index trackbacks

1 comment March 8th, 2007



Add to Technorati Favorites


Calendar

March 2007
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Posts by Month

Posts by Category