-
Sitemap pages are returning 404 error, have tried all solutions
-
Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
When I visited the website using the link
https://upsuch.com/?sitemap=1
I could see the blank page but in source code, all the code for sitemap is showing. To fix the white / blank page issue with?sitemap=1
please follow this article: https://rankmath.com/kb/fix-sitemap-issues/#blank-page
After following all the steps mentioned in the above article, you can see the sitemap by visiting the URL ?sitemap=1Regarding why
sitemap_index.xml
throws 404 error? It’s mainly because of the server isn’t redirecting ?sitemap=1 to sitemap_index.xml. Please follow the steps mentioned in this article: https://rankmath.com/kb/sitemap-404-error/#fix-the-404-errorHope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you
it did not work, but this code worked
# 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 RulesHello,
Thank you for the update.
I’ve checked your sitemap, and they seem to be opening fine now.
Could you please confirm if you still need assistance with the issue?
Looking forward to helping you.
Thank you.
i need help with another matter, news sitemap is listing 1 extra item and it is also not showing news posts on sitemap page
furthermore, index of sitemap shows dublicate link of news sitemap
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please try to follow the steps below and see if that works for you:
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. If the above steps don’t seem to work, kindly apply the following filter to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Let us know how it goes. Looking forward to helping you.
Thank you.
it is not cache related issue i think, because sitemaps are not being cached as you can see and check..
it is something else
Hello,
Please note that as per Google guidelines, the posts that you publish are placed in the news sitemap for just 2 days, then they are removed, and that is how the News Sitemap by Rank Math works.
With that said, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I Use RankMath Pro License from a third party agency, if your team disables rankmath plugin and then activates agains, this will cause the license to be registered again. please don’t disable rankmath plugins
Hello,
The issue with the News Sitemap is that you currently have a CPT on your website with the same name that is trying to generate the sitemap for it using our plugin.
This causes a conflict with our News Sitemap generation hence the issues you are seeing.
To get around this issue you need to make a slight change to the CPT name so it doesn’t conflict with our implementation of the News Sitemap.
Don’t hesitate to get in touch if you have any other questions.
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 ‘Sitemap pages are returning 404 error, have tried all solutions’ is closed to new replies.