Hello,
Thank you for your query, and we are so sorry about the trouble this must have caused.
I understand your concerns about the robots.txt file on your site, and I’m here to help.
Your shared text shows some discrepancies between the initial and current robots.txt files on your site.
The version you posted in the sensitive data section contains rules to disallow crawling of your /wp-admin/
and /wp-login.php?*
directories.
However, the current version of the site needs to have these rules.
Regarding the sitemap URL, adding a wildcard at the end of the URL should not influence the ability of search engines to crawl the sitemap.
The 404 error suggests that the sitemap was not found, but it’s more likely to be an issue related to the location or generation of the sitemap rather than the robots.txt file.
You mentioned that you added a new rule to disallow the crawling of a specific .json file in the wp-content/uploads/
directory.
It’s okay to have specific rules like this as long as they are intentional.
Now, I’ll comment on your current robots.txt (check sensitive data section).
This set of rules tells all crawlers that they are allowed to access /wp-admin/admin-ajax.php
, and they are not allowed to crawl the .json file in wp-content/uploads/
. The Sitemap directive is also pointing crawlers to the correct sitemap.
Overall, your current robots.txt rules are acceptable if they align with your goals.
Remember, it’s not a strict requirement to block crawling of the /wp-admin/
directory or /wp-login.php
, but it is common practice to do so for WordPress sites.
If you are still facing indexing issues, factors beyond the robots.txt file may influence this. For example, on-page SEO factors, meta tags, backlink profiles, quality of content, server issues, etc., could affect search engine rankings and visibility.
Make use of Google Search Console to diagnose further any crawling or indexing issues that might be present on your site.
This tool can provide more in-depth information on how Google interacts with your site.
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.