Robots.txt禁止使用subirectoy但允许其中的文件夹

时间:2015-02-12 08:01:24

标签: seo robots.txt

我希望禁止我的根文件夹中的子目录,但允许其中的文件夹。

我有什么:

User-Agent: *
Disallow: /admin

我想允许/ admin / images

这可能吗?

1 个答案:

答案 0 :(得分:0)

试试这个。试试robots.txt测试仪,以避免任何负面影响。

Allow: /admin/images/
Disallow: /admin/ 
相关问题