issue with yoast sitemap
-
Hi Yoast Team
Recently we have moved from Apache to Nginx. But my Yoast sitemap is not showing last modified data on my post sitemap link. Please check my image and suggest me.
image link : https://drive.google.com/file/d/124UZRE5yHI1ywJsHuTptoOB1LTCLJxup/view
Note: this is Google drive link take time to display image. so please wait for it.
-
Hello Abhishek,
Thanks for reaching out regarding your sitemaps. We understand that you switched from an Apache server to NGINX. By default, XML sitemaps are dynamically updated after any modification to them. If the site or server is caching the sitemap, this can cause it to not update right away. We also have additional information on this at the following link: https://kb.yoast.com/kb/sitemap-does-not-update/.
If the last modified date is not updated, we would recommend checking your caching settings and ensuring that the sitemap is being excluded from the cache.
If the issue persists after checking your caching settings, you can also force a cache reset by temporarily disabling the sitemap feature, and then re-enabling. To do so please perform the following steps:
1. ?In WordPress, navigate to SEO > General > Features
2. ?For ‘XML Sitemaps’, toggle the switch to ‘Disabled.’
3. ??Click ‘Save Changes.’
?4. Toggle the switch back to ‘Enabled.’
?5. Click ‘Save Changes.’?We also have a guide on how to enable/disable XML Sitemaps here: https://kb.yoast.com/kb/enable-xml-sitemaps-in-the-wordpress-seo-plugin/
Hi Maybellyne
Thanks to response.
1. I am using WP super cache, so I use these code for exclude sitemap:
sitemap(_index)?\.xml(\.gz)?
[a-z0-9_\-]*sitemap[a-z0-9_\-]*\xml|xsl|html)(\.gz)?
([az0-9_\-]*?)sitemap([a-z0-9_\-]*)?.xml2. I am using cloudflare, so I use this rule:
*example.com/*sitemap*
Cache Level: Bypass3. As you suggested, I use this code in WordPress function file
add_filter(‘wpseo_enable_xml_sitemap_transient_caching’, ‘__return_false’);then I did disable then enable Yoast Sitemap but issue is same.
these are not working.
Thanks for following up with us. We are sorry to hear the issue still persists for you.
To see what’s going on, we’d like you to please perform a conflict check at this stage. This will help us to find out the exact cause of the issue.
The fastest way to rule out any conflict, is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.
Please test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.
If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts
If you do not feel comfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.
Hi Md Mazedul Islam Khan (@mazedulislamkhan)
Thanks to response.
I try as you suggested Health Check & Troubleshooting plugin then I found only 1 recommended improvement:
“The REST API did not behave correctly
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API did not process the context query parameter correctly.”
If this is the problem, please suggest how to solve it. Thanks in advance.
You won’t need to follow the improvement that you see on the Health Check plugin. You’ll need to use the relevant plugin to perform the conflict check. The guide we provided you above shows exactly how to perform the conflict check. For your convenience, we are listing it here once again: https://yoast.com/help/how-to-check-for-plugin-conflicts/
Let us know whether you find the exact cause of the issue after performing the conflict check.
Md Mazedul Islam Khan (@mazedulislamkhan)
Now I have done conflict check by Health Check plugin. All plugin (excluded Yoast SEO) and themes was inactive, but I got same issue. So now What should I do?
Thanks for your confirmation. This is very odd. Can you please try resetting the Indexables tables and migrations by following the steps below to see whether this resolves the issue for you?
- Install and activate Yoast Test Helper plugin;
- Go to Tools → Yoast Test → Yoast SEO → Reset indexables tables & migrations options to reset it;
- Run SEO data optimization from the SEO → Tools page.
Let us know whether the issue persists after performing the above steps.
Md Mazedul Islam Khan (@mazedulislamkhan)
I have install Yoast Test Helper then Reset indexables tables & migrations after then Run SEO data optimization (It took long time to optimize). Did everything, but didn’t help, same issue.
Due to the nature of the issue, we’ll need to take a look at your setup. However, we are unable to do it here as this is a public forum. So, if you have an active Yoast SEO Premium subscription or if you can consider buying one, we can investigate the issue further directly on your setup privately through email.
However, if you don’t wish to get the Yoast SEO Premium subscription, that’s completely fine. In this case, you’ll need to troubleshoot the issue further on your setup as we are literally out of any clue at this moment without taking a look at the setup. So, someone from the community might step forward as well who has experienced or familiar with the issue.
Maybellyne (@maybellyne)
Unexpected reply but thanks. Yoast SEO Premium is too costly for me. If we get some discount then we can think about it but you have to solve this problem. My email is [email protected]
Thanks for following up with us, @abhishe11sharma. To get a discount and follow up with us on whether we could resolve the issue or not, please do feel free to send us a pre-sale query directly at [email protected] email address and our support engineers will get back to you as quickly as possible.
Don’t forget to keep an eye on Yoast.com to see when we’re running a promotion.
We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.
- The topic ‘issue with yoast sitemap’ is closed to new replies.