-
My sitemap is not working on google and pages are not being indexed
-
Hello, we’re sorry to hear that you’re experiencing issues with your sitemap and indexing on Google. Here are a few steps you can take to troubleshoot the problem:
-
Check Your Sitemap URL: Ensure that you are submitting the correct sitemap URL to Google. The sitemap should be available at
https://yourdomainname/sitemap_index.xml. -
Verify Sitemap Accessibility: Go to your sitemap URL in a browser to see if it loads correctly. If it shows a blank page or an error, there may be an issue with your server configuration.
-
Server Configuration: If you’re using an Apache web server, you may need to add specific rewrite rules to your
.htaccessfile. Here’s the code you can add:# START of Rank Math Sitemap Rewrite Rules RewriteEngine On RewriteBase / RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L] RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L] RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L] # END of Rank Math Sitemap Rewrite RulesIf you’re using Nginx, you can add the following rules to your Nginx config file:
# START Nginx Rewrites for Rank Math Sitemaps rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; rewrite ^/([a-z]+)?-sitemap.xsl$ /index.php?xsl=$1 last; # END Nginx Rewrites for Rank Math Sitemaps -
Check for Plugin Conflicts: Sometimes, other plugins can interfere with the sitemap functionality. You can use the Health Check plugin to identify any conflicts.
-
Submit Your Sitemap to Google Search Console: Make sure you have submitted your sitemap in Google Search Console. This helps Google discover your pages more efficiently.
-
Review Robots.txt File: Ensure that your
robots.txtfile is not blocking access to your sitemap. You can check this in the Rank Math settings under Rank Math SEO → General Settings → robots.txt.
If you’ve tried these steps and are still having issues, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!
Hello can someone help me?
Hello,
We’ve checked your sitemap, and it is already working fine.
In this case, please follow our guide here:
https://rankmath.com/kb/couldnt-fetch-error-google-search-console/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.
-
The ticket ‘My sitemap is not working on google’ is closed to new replies.