-
My Sitemap is not working it was showing that not working why?
We migrated the host service Bluehost to Hostinger, and then after this sitemap issue occurred.
Can anyone connect and resolve the issue very soon.
-
Hello,
We apologize for the issue you are facing with your Sitemap after migrating from Bluehost to Hostinger. This can happen due to various reasons, especially related to server configurations or rewrite rules that may not have been properly set up during the migration.
Here are a few steps you can take to troubleshoot the issue:
-
Check if the Sitemap Loads: Go to `https://rankmath.com/kb/wordpress-hooks-actions-filters/#rank-math-php-file. If it loads your sitemap, you may need to add some rewrite rules.
-
Add Rewrite Rules: Depending on your server type (Apache or Nginx), you may need to add specific rewrite rules:
- For Apache, add the following to your
.htaccess
file:# 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 Rules
- For Nginx, add the following 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
- For Apache, add the following to your
-
Flush Permalinks: Sometimes, simply flushing permalinks can resolve issues. Go to the Permalinks settings in your WordPress dashboard and click Save Changes without making any changes.
-
Check for Plugin Conflicts: Ensure that there are no conflicts with other plugins that might be affecting the Sitemap functionality. You can use the Health Check plugin to help identify any conflicts.
If you continue to experience issues, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we hope to resolve it quickly for you!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank MathHi!
We have flushed permalinks and checked plugins also, we did not find any issue, but still issue is still occurring.
Can anyone connect and resolve the issue, please?Hello,
The URL you’re using for your sitemap is incorrect, it should be without WWW.
You can also see that it is working properly, so you should redirect your whole site’s version to HTTPS non-WWW:
https://rankmath.com/kb/how-to-redirect-www-urls-to-non-www/If you need assistance with the redirection, you may get in touch with your web host.
Looking forward to helping you.
Yes! Thank you for being so supportive Reinelle!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on
https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-postabout your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
-
You must be logged in to reply to this ticket.