 |

Harnessing the Power of Robots.txt |
 | 4 |
| |
|
Submitted by Writer's Cramp Syndications
| RSS Feed
| Add Comment
| Bookmark Me!
Once we have a website up and running, we need to make sure that all visiting search engines can access all the pages we want them to look at.
Sometimes, we may want search engines to not index certain parts of the site, or even ban other SE from the site all together.
This is where a simple, little 2 line text file called robots.txt comes in.
Robots.txt resides in your websites main directory (on LINUX systems this is your /public_html/ directory), and looks something like the following:
User-agent: * Disallow:
The first line controls the bot that will be visiting your site, the second line controls if they are allowed in, or which parts of the site they are not allowed to visit
If you want to handle multiple bots, then simple repeat the above lines. So an example:
User-agent: googlebot Disallow:
User-agent: askjeeves Disallow: /
This will allow Goggle (user-agent name GoogleBot) to visit every page and directory, while at the same time banning Ask Jeeves from the site completely. To find a reasonably up to date list of robot user names this visit http://www.robotstxt.org/wc/active/html/index.html
Even if you want to allow every robot to index every page of your site, its still very advisable to put a robots.txt file on your site. It will stop your error logs filling up with entries from search engines trying to access your robots.txt file that doesnt exist.
For more information on robots.txt see, the full list of resources about robots.txt at http://www.websitesecrets101.com/robotstxt-further-reading-resources
Click for Details --> Customer Generating Machine <--
|
|
 |

|
LinkedIn Recommendation:
Leonarda Wrye - Web Developer at Taggart Transcontinental - I don't know where to start with Teo... Just so much to say. I thought you could just build a website and the money would start rolling in, but Teo straightened me out on that up front. It's a lot more work than I thought it was. I am glad I worked with him before I made any big plans to quit my job. I do have a great business plan now, and know EXACTLY how to get to my goal of working at home... gotta get to it! Thanks Teo! - March 17, 2012, Leonarda was Teo's client |
|
Featured [Domains] Articles:
|
 |