技术 SEO
robots.txt
为何重要
robots.txt controls which parts of a site crawlers may visit. A wrong Disallow rule can block important pages from Google; a missing file is fine but wastes the chance to list your sitemap.
如何修复
- Make sure no Disallow rule blocks pages that should rank.
- Add a “Sitemap:” line pointing to your XML sitemap.
- Test changes before publishing them.
使用以下工具检查
- Robots.txt Tester – Fetch and validate robots.txt, and test whether any URL is blocked for Googlebot or AI bots.
- Robots.txt Generator – Build a robots.txt file with sitemap, blocked folders and AI crawler controls.
评分:通过的检查获得全部权重,警告获得一半,错误则不得分。 SEO 评分如何运作