Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top