Robots.txt Allow sub folder but not the parent

前端 未结 3 785
南旧
南旧 2021-01-03 20:54

Can anybody please explain the correct robots.txt command for the following scenario.

I would like to allow access to:

/directory/subdirec

3条回答
  •  离开以前
    2021-01-03 21:29

    I would recommend using Google's robot tester. Utilize Google Webmaster tools - https://support.google.com/webmasters/answer/6062598?hl=en

    You can edit and test URLs right in the tool, plus you get a wealth of other tools as well.

提交回复
热议问题