如果在WordPress網站我的類別順序爲:通配符robots.txt中
-Parent
--Child
---Subchild
我必須設置爲永久鏈接: %類別%/%postname%
我們用一個例子。 我使用帖子名稱「Sport game」創建帖子。 它的標籤是體育比賽。 它的完整網址是:domain.com/parent/child/subchild/sport-game 爲什麼我使用這種類型的固定鏈接恰好是在robots.txt中更容易地阻止某些內容。
現在這是我有問題的部分。 robots.txt中:
User-agent: Googlebot
Disallow: /parent/*
Disallow: /parent/*/*
Disallow: /parent/*/*/*
Disallow: /parent/*
是否意味着這個規則,它的阻止domain.com/parent/child
但不domain.com/parent/child/subchild
而不是domain.com/parent/
的?
Disallow: /parent/*/*/*
是這樣的意思,它阻止domain.com/parent/child/subchild/
,它只阻止subchild,而不是子級,不是父級,而不是子級下的帖子?