Hi @mazedulislamkhan, this solution doesn’t quite work.
Perhaps Googlebot changed the way that they treat Disallow: /wp-admin/
, and now _maybe_ a disallow
will override an allow
that follows it within the same path?
I have the same exact problem, and when I click “Mark as Fixed,” the problem returns automatically.
Here is the robots.txt:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://www.guitarmusictheory.com/sitemap.xml.gz
I’ve tried this with Yoast, without Yoast, with a default WordPress theme, and with a custom theme.
Regardless, here is the 400 error in Google Search Console:
URL:
https://www.guitarmusictheory.com/wp-admin/admin-ajax.php
Googlebot couldn’t access this page because the server didn’t understand the syntax of Googlebot’s request.
-
This reply was modified 6 years, 7 months ago by
Joe Westcott.