I want to allow only these urls to read robots in mysite

example.com/site/faq
example.com/site/blog
example.com/site/aboutus

All other URLs need to be blocked, what are the rules ? Thanks

有帮助吗?

解决方案

I think what you're looking for is:

User-agent: *
Allow: /site/faq
Allow: /site/blog
Allow: /site/aboutus
Disallow: *

That specifically allows the three folders you mentioned, and disallows everything else.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top