is this correct robots.txt - User-agent: * Disallow: /wp-admin/ Allow:…
- User
is this correct robots.txt - User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/ Disallow: /readme.html Disallow: /refer/ Disallow: /cgi-bin/
codeSitemap: https://seowriter.in/sitemap.xml - Assistant
The
robots.txtfile you provided appears to be mostly correct for the purpose of managing which parts of your website search engine crawlers can access. However, there are some formatting details to note:- Consistent indentation: While not strictly necessary, maintaining consistent indentation improves readability.
- Separate directives from comments or formatting lines: Although spacing between lines is a personal preference for readability, some prefer to keep directives closely spaced to avoid potential parsing issues with some bots (though major bots should handle it just fine).
- Consider user-agent specificity: If you need to provide different rules for various bots, you'll need separate sections for them.