Hello,
I’m sorry to hear about the trouble you’re facing with your sitemap and Google indexing. To address the issue, let’s start by checking a few things:
-
Sitemap Existence: The URL you provided, “https://yourdomainname.com/sitemap_index.xml" seems to have a typo. It should be "https://yourdomainname.com/sitemap_index.xml
.” Please ensure that the correct sitemap URL is used for indexing.
-
Rank Math Sitemap Creation: Rank Math automatically creates the sitemap for your website. If you are experiencing issues with the sitemap, you can refer to our guide on fixing common sitemap issues for assistance.
-
Robots.txt File: To locate your robots.txt file in Rank Math, you can go to Rank Math SEO → General Settings → robots.txt in your WordPress dashboard. Ensure there are no unintended rules that might be blocking search engine crawlers.
If you continue to face difficulties after checking these points, please let us know, and we’ll be happy to assist further.
Warm regards.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
The robots.txt is still an issue and so is my /sitmap_index.xml
this is what I get under the Rankmath robots.text setting:
“the robots.txt file is not writable.
# This file is automatically added by Rank Math SEO plugin to help a website index better
# More info: https://rankmath.com/?utm_source=Plugin&utm_medium=Robots&utm_campaign=WP
User-Agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://arrhythmiadigital.com/sitemap_index.xml”
Hello,
This usually happens when the file edits are disabled through the wp-config.php file.
In this case, you may get in touch with your web host to ensure that your website files are writable so you can edit the robots.txt via Rank Math.
Here’s a link for more information:
https://rankmath.com/kb/cant-edit-robots-txt/#not-writeable
Regarding your sitemap, please follow these steps to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once done, remove all your submitted sitemaps in your Google Search Console account and resubmit your main sitemap index only /sitemap_index.xml
Looking forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.