-
-
Save dexit/e79ce9b632a18900c20d383f38d788d7 to your computer and use it in GitHub Desktop.
robots.txt for WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * # Создаем секцию правил для роботов. * значит для всех | |
# роботов. Чтобы указать секцию правил для отдельного | |
# робота, вместо * укажите его имя: GoogleBot, Yandex. | |
Disallow: /cgi-bin # Стандартная папка на хостинге. | |
Disallow: /wp-admin/ # Закрываем админку. | |
Allow: /wp-admin/admin-ajax.php # Откроем аякс. | |
Disallow: /? # Все параметры запроса на главной. | |
Disallow: *?s= # Поиск. | |
Disallow: *&s= # Поиск. | |
Disallow: /search # Поиск. | |
Disallow: /author/ # Архив автора. | |
Disallow: */embed$ # Все встраивания. | |
Disallow: */xmlrpc.php # Файл WordPress API | |
Disallow: *utm*= # Ссылки с utm-метками | |
Disallow: *openstat= # Ссылки с метками openstat | |
Sitemap: http://example.com/sitemap.xml | |
# Не забудьте поменять `example.com` на ваш сайт. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment