Create robots.txt file for better SEO
This entry was posted by nhc on Monday, July 7th, 2008 at 6:18 pm. It is filed under Blogging Tips, Wordpress Tutorials and tagged with blogging, robots.txt, search engine optimization, seo.

It has been a half month since ThemeLib.com was created, not a long time, huh ?. Today, I decided to test how is my site in two popular Search Engines : Google and Yahoo.
Here is the result :
- Google: get 48 results returned with keywords http://themelib.com
- Yahoo: get 35 results returned with keywords http://themelib.com
All of the results in Google is fine. They indexed my posts, my tags, my keywords, … But wait, there are some problems with my site in Yahoo.



Yahoo indexed my wp-login page and download links !!! How did it happed, huh ? If you have knowledge on SEO (Search Engine Optimization), these results are not good, really. After examining ThemeLib.com a few minutes, I realized that I have not created a Robots.txt file yet !!! Oh man, how can I forget it? ![]()
Introduction
The robots.txt file is used to instruct search engine robots about what pages on your website should be crawled and consequently indexed. Most websites have files and folders that are not relevant for search engines (like images, download links, admin files, …) therefore creating a robots.txt file can actually improve your website indexation.
How to Create a Robots.txt file
A robots.txt is just a simple text file that can be created with any text editor such as Notepad. If you are using Wordpress, a sample robots.txt file would be :
User-agent: *
Disallow: /wp-
Disallow: /feed/
Disallow: /trackback/
Disallow: /download/
“User-agent: *” means that all the search engine (Google, Yahoo, MSN and so on) should use those instructions to crawl your website.
“Disallow: /wp-” will make sure that the search engines will not crawl the Wordpress files. This line will exclude all files and foldes starting with “wp-” from the indexation, avoiding duplicated content and admin files. Similar to Disallow: /feed/, Disallow: /trackback/, …
After you created the robots.txt file just upload it to your root directory and DONE!
Further reading
Here are some articles that may useful for you if you want to read more about SEO and Robots.txt
- Controlling how search engines access and index your website
- Googlebot
- Inside Google Sitemaps: Using a robots.txt file
Conclusion
You should always verify your site in Search Engine like Google, Yahoo to see if there are any problems with the indexing. Hope you do not make a mistake like me.
You've read the post. What's next?
If you like this post then please consider subscribing to our RSS feed. You can also subscribe by email to receive free updates directly in your inbox.
Want to know what am I doing? Follow me on Twitter!





















Great post. Thanks for the info. It’s a tough job learning all this SEO stuff.
Seo is really very good and difficult (to start) to learn, to optimize the site, I understand, is need many studies related to that!
Now I ask you, the template I am using and you convert is optimized with Seo? If not, some assistance x)
thanks!
MOST of SEO techniques depend on you, not the theme
You can search on internet about SEO, lots of Blogger have written about it.
Whats the most important with SEO?The title? I really need work on SEO lol.
Hello John,
Title is important on SEO, but not the most important. In proper SEO, the key things are:
* Title
* Keyword Density (Percentage of the keyword in the total post)
* Image parameters like Image title, Alternate text etc
* Non indexing of duplicate contetn on tag pages etc.
* Proper links (nofollow for non relevant links)
* First 160 characters must describe the post. plus proper description tag etc.
Use the All in one SEo pack, its comprehensive + Google Sitemap Generator plugin
That should do. My friend, Mani is a professional SEO expert. His blog dailyseoblog.com has lots of tips.
Hope you find the info useful.
Arun.
There is another easy way for those who dont like to edit code directly, Use the Google-Sitemap Generator plugin. There is an option to create Robots.txt file. The file redirects the google bot to the sitemap and sitemap will have only the relevant links.
with this plugin, my contents are indexed within 36-48 hours.
Hope that helps someone.
Arun
This is a great source of info. I am hoping to improve my seo on my sites too. I will be hanging out in your site alot the coming days.