Saminl 发表于 2012-05-09 16:06:44

我的 robots.txt 这样设置行不行?


#
# robots.txt for Discuz! X2
#

User-agent: *
Disallow: /api/
Disallow: /data/
Disallow: /source/
Disallow: /install/
Disallow: /template/
Disallow: /config/
Disallow: /uc_client/
Disallow: /uc_server/
Disallow: /static/
Disallow: /admin.php
Disallow: /search.php
Disallow: /member.php
Disallow: /api.php
Disallow: /misc.php
Disallow: /connect.php
Disallow: /forum.php?mod=redirect*
Disallow: /forum.php?mod=post*
Disallow: /home.php?mod=spacecp*
Disallow: /userapp.php?mod=app&*
Disallow: /*?mod=misc*
Disallow: /*?mod=attachment*
Disallow: /*mobile=yes*

TONY 发表于 2012-05-09 16:13:16

是的 就是这样的 不过建议加上sitemap

Saminl 发表于 2012-05-10 15:14:24

TONY 发表于 2012-5-9 16:13 static/image/common/back.gif
是的 就是这样的 不过建议加上sitemap

哦 好谢谢了...{:soso_e113:}

海棠花开 发表于 2025-11-10 21:42:26

这个思路很新颖,打开了新世界的大门,谢谢分享

星神子 发表于 2025-11-10 21:42:39

刚好遇到类似问题,看完这个帖子心里有底了

heart 发表于 2026-03-19 10:02:27

分析得很透彻,很多细节都说到点子上了~

~风扬~ 发表于 2026-04-28 07:16:13

楼主太厉害了,整理得这么详细,必须支持

小小 发表于 2026-05-04 02:13:15

蹲了这么久,终于看到有价值的讨论,支持一下!
页: [1]
查看完整版本: 我的 robots.txt 这样设置行不行?