How to Handle a Soft 404 error to an admin page in WordPress
-
I'm seeing this error on Google Webmaster Console:
| URL: | http://www.awlwildlife.com/wp-admin/admin-ajax.php |
|
| Error details | Linked from | |
|
| Last crawled: 11/15/16First detected: 11/15/16The target URL doesn't exist, but your server is not returning a 404 (file not found) error. Learn more
Your server returns a code other than 404 or 410 for a non-existent page (or redirecting users to another page, such as the homepage, instead of returning a 404). This creates a poor experience for searchers and search engines.
More information about "soft 404" errors |
Any ideas what I should do about it?
Thanks!
-
Hi Adam,
Yes, as you're using WordPress and this page doesn't provide any content to a search engine anyway (it's your WP Admin). Make sure you add an extra line to your robots.txt file like this:
Disallow: /wp-admin/*
This will make sure GSC and Moz tools won't look at pages on this URL structure at all which is basically what you want here.
Hope this helps!
-
Thanks Martijn and Christy!