If in WordPress website I have categories in this order:
-Parent
--Child
---Subchild
I have permalinks set to:
%category%/%postname%
Let use an example.
I create post with post name "Sport game".
It's tag is sport-game.
It's full url is: domain.com/parent/child/subchild/sport-game
Why I use this kind of permalinks is exactly to block some content easier in robots.txt.
And now this is the part I have question for.
In robots.txt:
User-agent: Googlebot
Disallow: /parent/*
Disallow: /parent/*/*
Disallow: /parent/*/*/*
Disallow: /parent/*
Is meaning of this rule that it's blocking domain.com/parent/child
but not domain.com/parent/child/subchild
and not domain.com/parent/
?
Disallow: /parent/*/*/*
Is meaning of this that it's blocking domain.com/parent/child/subchild/
, that it's blocking only subchild, not child, not parent, and not posts under subchild?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…