-
the pages throwing error:- Oops! That page can’t be found.
rest other sitemaps are showing. but only the main and category sitemap isnt showing.
-
Hello, I’m sorry to hear that you’re experiencing issues with your main sitemap and category sitemap not showing. This can be frustrating, but we’re here to help.
To address this issue, you can follow these steps:
-
Flush the Sitemap Cache: Sometimes, the sitemap cache can cause issues. You can flush the cache by visiting Rank Math > General Settings > Search Console and clicking on the “Rebuild Sitemap” button.
-
Ensure the Sitemap is Located in the Root Folder: If you manually created the sitemap, ensure it is installed in the root folder of your WordPress installation. That means there should only be one forward slash between your domain name and sitemap path.
-
Verify Your Sitemap Configuration: You can use the Validate XML Sitemap tool to confirm that your sitemap is correctly configured.
If you’re using Rank Math for your sitemaps, you can also check if the Sitemap module is enabled in Rank Math SEO > Dashboard and verify if you’ve configured the settings correctly in Rank Math SEO > Sitemap Settings.
I hope these steps help resolve the issue with your main and category sitemaps not showing. If you have any further questions or need additional assistance, please feel free to ask.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Analyzing Your Site’s SEO with Rank Math’s SEO Analysis ToolIncorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)
it is showing this error while validating xml sitemap of main and category sitemapHello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.
Please follow the steps below for initial troubleshooting:
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/
If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. To do this, you need to add a small piece of code to your site’s functions.php file or use a plugin like Code Snippets.
The code you need to add is this:/**
* 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/.It will show you step-by-step how to use the Code Snippets plugin or edit the functions.php file safely.
After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.
Thanks.
Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)
I’m getting this in Validate XML Sitemap.Hello,
Can you please share the affected website URL with us so we can further check it on our end?
Looking forward to helping you.
This is the affected link (https://needscilis.com/sitemap_index.xml)
This is always redirecting us to the 404 page that’s why i used another plugin for sitemap. If you gave me guidance about the same then i’ll remove the existing plugin and enable the sitemap option under rank math.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress 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.
You can login using the given details
[Moved to the sensitive data section]
please note
i off the sitemap option in rank math and add the second plugin only for sitemap. You have a access to remove the external plugin for the sitemap if rank math sitemap is wokring.
Thanks
Hello,
We’ve checked your website and found that the Sitemap module was disabled. We enabled the Sitemap module and after clearing the cache, your sitemap is working properly without any issues:
We also checked with the XML Validator tool and we can see it is validating fine:
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.Yes, it’s showing now but i have one more question i don’t whether you help me in this or now. But when i adding the sitemap in the google search console the main sitemap shows 0 discovered urls. On the other hand the rest sitemaps(page, category, post) shows correct discovered pages. And also google is not crawling the domain.
Hello,
Please note that the Discovered URLs 0 that you see in Google Search Console just means that the URLs in the sitemap were already found by Googlebot by other means, instead of via the sitemap. For example, Googlebot may have found the URLs from internal links or possibly from links on another site. It mostly happens when you have good internal linking or use the Instant Indexing plugin.
Here’s a link you can check for more information:
https://rankmath.com/kb/zero-discovered-urls-through-sitemap/Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank 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 Main sitemap and category sitemap isnt showing,’ is closed to new replies.