Help post-sitemap.xml 404 !!!!

#676261
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    I’m sorry to hear that you’re experiencing issues with your post-sitemap.xml file returning a 404 error. This could potentially cause Google to be unable to find all the pages on your site.

    To resolve this issue, you can try the following steps:

    1. Flush the Sitemap Cache: You can start by flushing the sitemap cache. To do this, please navigate to your WordPress dashboard, head over to Rank Math SEO > Sitemap Settings, and click on the “Save Changes” button without making any changes.

    2. Ensure Pages Are Set to Index: It’s important to ensure that your posts are set to index. You can do this by going to Rank Math SEO > Titles & Meta and enabling the “Index” checkbox in the Robots Meta settings.

    3. Validate Your Sitemap: You can also validate your sitemap using the Validate XML Sitemap tool to confirm that it is correctly configured.

    If you’ve tried these steps and are still experiencing issues, please let us know, and we’ll be happy to assist you further.

    You can also refer to our knowledgebase article on why the sitemap_index.xml throws a 404 error for more detailed information on how to fix this issue.

    I hope this helps!

    Sources:
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How to Configure Sitemaps in Rank Math – Best Settings and Tips

    Anonymous
    Rank Math free

    Help Me….

    Hello,

    Please follow the steps to flush the sitemap cache:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. 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/

    Let us know how this goes.

    Anonymous
    Rank Math free

    Sau khi làm 3 bước trên thì sơ đồ trang web của tôi đã gặp lỗi 100% thay vì chỉ lỗi duy nhất post-sitemap thì giờ lỗi luôn : https://gauapple.com/sitemap_index.xml

    This page contains the following errors:

    error on line 1 at column 1: Document is empty
    Below is a rendering of the page up to the first error.

    Từ lỗi 10% bây giờ sau khi hoàn thành 3 bước trên đã lỗi 100% không hiển thị sơ đồ trang web nữa.

    Anonymous
    Rank Math free

    Tôi cần khắc phục lỗi 404 trên duy nhất URL này : https://gauapple.com/post-sitemap.xml

    Hello,

    We checked your post sitemap xml and the post pages.

    Upon checking we can see that the post pages have a different cannonocal url set.

    screenshot

    Rank Math does not include URLs to the sitemap that have a different cannonical url as compared to the original url.

    We hope that helps, and please don’t hesitate to get in touch if you have any other questions.

    Thank you.

    Anonymous
    Rank Math free

    Thank. You pointed out my error but I need a fix to resolve the 404 sitemap post error.

    Hello,

    What you can simply do is remove the canonical URLs, save the posts, and allow Rank Math to generate self-referencing canonical URLs for your posts.

    You can as an alternative add the following filter to your site to help you set the current URL of your posts as canonical:

    
    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
    	$canonical= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    	return $canonical;
    });

    Here’s how you can add filters/hooks to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    After doing any of the above flush the sitemap by following this screencast and see if the issue is resolved: https://i.rankmath.com/pipRDp

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    I followed suit, adding the code you submitted to the web but it still didn’t work. My SiteMap Post is still 404

    https://gauapple.com/post-sitemap.xml

    Plsss help mee

    Hello,

    In this case, 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.

    Sensitive Data Section

    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.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    We would like to access your WP admin login but we are greeted with a 403 error as you can see in the screenshot below:

    Rank Math support

    If you are using geo-blocking, please temporarily unblock the country Portugal, India, and the Philippines so we can further inspect your website.

    We are looking forward to helping 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.

Viewing 12 replies - 1 through 12 (of 12 total)

The ticket ‘Help post-sitemap.xml 404 !!!!’ is closed to new replies.