-
Hi, I followed the advice you provided on troubleshooting this but I still get a 404 error when trying to access the sitemaps your plugin generates.
I don’t use a caching plugin.
Also, I cannot see any actual sitemap files when I check the hosting directories.
-
Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Rank Math generates the sitemap file dynamically and there is no physical file added to your site’s root directory.
Please add this filter in the theme’s
functions.phpfile:add_filter( 'rank_math/sitemap/enable_caching', '__return_false');Here is a guide you can follow to add the filter:
https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-fileOnce done, clear your server cache and check the sitemap.
Let us know if the issue persists.
We are here to assist you.
Ok, ty, I will try. When I checked with Bing, they seemed to think there was a sitemap but of course, i could see no such file and when I clicked on the Bing Webmaster links they still generated error 404. I assume, notwithstanding what you have said, that the links to the sitemap files should enable something to be viewed whereas at the moment all I get is error 404.
Hello,
Can you please share the sitemap URL in the sensitive data section?
We look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Cannot use child theme due to fault in WP theme. Cannot see obvious place to insert in function.php file.
Hello,
You can also try using the Code Snippets plugin to add the code and see if that helps: https://rankmath.com/kb/wordpress-hooks-actions-filters/#code-snippets-plugin
In case the issue persists, please see that you’ve set the “Links Per Sitemap” close to 200. You can find this setting under Rank Math > Sitemap Settings > General.
Once done, please flush the sitemap’s cache by following this screencast and see if that fixes the issue: https://i.rankmath.com/pipRDp
Let us know how that goes.
Ty Prabhat, i already tried the flushing method you suggested – no joy – and varied the sitemap links to flush the cache that way too. i guess I will have to try code snippets…
Added code snippets and set code to run only on front end of site.
Repeated the flushing. Still not working.:-((
Hello,
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.
Do you need access to the live or the staging domain? The staging domain is a subdomain and that was where I tested your suggestions.
What email address should I use for you? (for the temporary login)
Have everything ready but I need to know what email address to use for you for the temporary login.
Hello,
You can share the logins of the staging website.
Please use the email address
s******@r***********to create the temporary login.Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Done. Thank you. Please let me know what you find/change and when you are finished, hopefully successfully. Many thanks for your support. Much appreciated.
Hi, any news?
You must be logged in to reply to this ticket.