-
Hi Team, Suddenly our sitemap disappears. And it showing Page Not Found Error.
URL = https://sellwithdealmate.com/
Sitemap = https://sellwithdealmate.com/sitemap_index.xml
-
Hello,
We apologize for the issue you are facing with your sitemap showing a "Page Not Found" error. This can happen for a few reasons, and we can help you troubleshoot it.
Here are some steps you can take to resolve the issue:
-
Flush Permalinks: Sometimes, simply flushing the permalinks can resolve this issue. To do this, go to your WordPress admin area, navigate to Settings → Permalinks, and click the Save Changes button without making any changes. This often resolves 404 errors related to sitemaps.
-
Check Sitemap URL: Ensure that your sitemap URL is correct. It should be `https://img.youtube.com/vi/-QZro6QysCA/maxresdefault.jpg. You can also try accessing it directly in your browser to see if it loads.
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with the sitemap functionality. You can use the Health Check plugin to check for conflicts.
-
Server Configuration: If you are using Apache or Nginx, ensure that the server is configured correctly to handle the sitemap requests. You may need to add specific rewrite rules to your server configuration.
- 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 configuration:
# 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
If these steps do not resolve the issue, please reply to this ticket, and a human agent from our support team will assist you further. Thank you for bringing this concern to our attention!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank MathThis is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
We’ve checked your sitemaps, but they seem to be working fine.
If the issue persists, please follow these steps to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. 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/Looking forward to helping you.
-
You must be logged in to reply to this ticket.