Easily configure Web site Robots.txt files

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

In a website, robots.txt is an important document, each site should have a set of correct robots.txt.
Before search engines can crawl your site's files, they will first take a look at the settings of your site's robots.txt file to see which files and directories you allow it to crawl. So how do you configure your robots.txt file?
Let's look at an example:
# robots.txt file Start
# Exclude Files from all Robots:
User: *
Disallow:/admin_login/
Disallow:/admin/
Disallow:/admin.htm
Disallow:/admin.aspx
# End Robots.txt File

There is a # number are annotations, easy to read.
User is the search engine spider, followed by the * number, indicating that all spiders are effective.
Disallow means no crawl, a directory or file that is not allowed to crawl.

Edit this file, then save it in the root of your site (must be the root directory, of course, you can adjust), then the search engine will see.
If you do not have robots.txt files, in your website access log files, you will see Spiders access to robots.txt files unsuccessful records.
OK, now go and set up your robots.txt file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.