Answer the question
In order to leave comments, you need to log in
Is it possible to first close all pages from indexing and then enable only some?
Will this robots.txt be correct?
User-agent: *
Disallow: /
Allow: /price/
Allow: /contacts
http://domen.ru/?
Answer the question
In order to leave comments, you need to log in
See the Yandex.Webmaster cheat sheet :
******
The Allow and Disallow directives from the corresponding User-agent block are sorted by URL prefix length (from smallest to largest) and are applied sequentially. If several directives are suitable for a given page of the site, then the robot selects the last one in the order of appearance in the sorted list. Thus, the order of the directives in the robots.txt file does not affect how the robot uses them.
In the event of a conflict between two directives with prefixes of the same length, the Allow directive takes precedence.
******
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question