Robots.txt不允许subdirectoy,但允许在该文件夹
问题描述:
林希望禁止在我的根文件夹中的子目录,但允许其中的文件夹。Robots.txt不允许subdirectoy,但允许在该文件夹
我有什么:
User-Agent: *
Disallow: /admin
我想允许/管理/图像
这可能吗?
答
试试这个。在robots.txt测试中尝试一下,以避免任何负面影响。
Allow: /admin/images/
Disallow: /admin/