I need search engines to index only one folder. The main page of the site is not necessary to index.

How can I do this?

    1 answer 1

    It is necessary to prohibit all indexing paths in robots.txt, except for the interesting one.

    User-agent: * Disallow: /folder0/ Disallow: /folder1/ ... Disallow: /folder9/ 
    • Now, if I write like this: User-agent: * Allow: / path / st / Disallow: / Will only that directory be indexed and that's it? - maza51
    • Quite possible. Check in webmaster tools Google and Yandex. - stanislav