Control Which Areas Of Your Site Are Indexed With A Robots.txt File


Sometimes there are areas of your site that you don’t want indexing by search engines - e.g. admin files or images. By creating a robots.txt file, you can tell search engine robots about what pages on your website should be crawled and consequently indexed.

A robots.txt can be created quickly with Notepad. If you are using Wordpress a sample robots.txt file would be:

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

“User-agent: *” means that all the search bots (from Google, Yahoo, MSN and so on) should use those instructions to crawl your website. Unless your website is complex you will not need to set different instructions for different spiders.

“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.

If you are not using Wordpress just substitute the Disallow lines with files or folders on your website that should not be crawled, for instance:
User-agent: *
Disallow: /images/
Disallow: /cgi-bin/
Disallow: /any other folder to be excluded/

After you created the robots.txt file just upload it to your root directory and you are done!

Thanks to DailyBlogTips for today’s tip

Bookmark & Share

Related Posts

Related posts brought to you by Yet Another Related Posts Plugin.

About the Author

author photo

Want to get more out of your PC, the internet or your mp3 player? Onetipaday.com is here to provide clear simple tips and guides to help you achieve just that. Each tip will be easy to implement and will take no more than 5 minutes to read and implement. What will you learn today?

See All Posts by This Author

Subscribe without commenting

Post a Response


Comment Policy: Any comments are permitted only because the site owner is letting you post, and any comments could be removed for any reason at the absolute discretion of the site owner.
  • Subscribe For Tips!

    subscribe to my feed
    1 - What is RSS?
    2 - Or, signup & receive updates by email!
  • www.checkcost.co.uk

    Read Reviews & Compare

    Computer

    Laptops

    Printer

    MP3 Players

    Compare Prices

  • Meta