is this ocrrect robots txt - User-agent: * Disallow: /wp-admin/ Allow:…
- User
is this ocrrect robots txt - User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php
Sitemap: https://acupunctureecology.com/sitemap.xml Sitemap: https://acupunctureecology.com/sitemap.rss
- Assistant
Your
robots.txtfile looks generally correct. Here is a breakdown of its components:-
User-agent: *: This line specifies that the following rules apply to all web crawlers. -
Disallow: /wp-admin/: This prevents web crawlers from accessing the/wp-admin/directory but will still allow the/wp-admin/admin-ajax.phpfile to be accessed due to the next rule. -
Allow: /wp-admin/admin-ajax.php: This explicitly allows access to theadmin-ajax.phpfile even though the parent directory/wp-admin/is disallowed. -
Sitemap: https://acupunctureecology.com/sitemap.xml: This indicates the location of your primary XML sitemap. -
Sitemap: https://acupunctureecology.com/sitemap.rss: This points to an RSS version of the sitemap.
Here is the same
robots.txtcontent, formatted properly:User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Sitemap: https://acupunctureecology.com/sitemap.xml Sitemap: https://acupunctureecology.com/sitemap.rss -