Last active
November 18, 2019 23:32
-
-
Save thegulshankumar/ba7db849ade688a7161ad5c93ddd5ad1 to your computer and use it in GitHub Desktop.
Idle 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
Sitemap: https://www.example.com/sitemap_index.xml | |
User-agent: * | |
Disallow: /?s=* | |
Disallow: /wp-admin/ | |
Allow: /wp-admin/admin-ajax.php | |
Allow: /wp-admin/images/ | |
Allow: /wp-admin/css/ | |
Allow: /wp-admin/js/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line by line Explanation
[The robots.txt rule is written as per Google Mobile Friendly guidelines which says, do not block CSS and JS path.]