Hello,
We apologize for the issue you are facing with your sitemap redirecting to the homepage. This can happen due to a few reasons, such as server configuration issues or plugin conflicts.
Here are some steps you can take to troubleshoot this issue:
-
Check Your Server Configuration: If you are using an Apache web server, ensure that your .htaccess
file has the correct rewrite rules for Rank Math sitemaps. You can add the following code 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
If you are using Nginx, you will need to add the following rules to your Nginx configuration 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.
-
Verify Sitemap URL: Make sure you are accessing the correct sitemap URL. It should typically be `https://rankmath.com/wp-content/uploads/2022/05/Advanced-Tab.png.
If these steps do not resolve the issue, please reply to this ticket with your site URL so that we can assist you further. Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.
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.