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

刚好遇到类似问题,看完这个帖子心里有底了
页: [1]
查看完整版本: 我的 robots.txt 这样设置行不行?