Sitemap of one language includes 404 pages and posts of another language

#613136
Viewing 5 replies - 1 through 5 (of 5 total)
  • 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/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. 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.

    Thank you.

    Thanks, i tried all these things but nothing worked. Can you suggest anything else?

    Hello,

    The login details you have shared are not working. Please share the working login details so we can check this further.

    Looking forward to helping you.

    They work for me. Can you please retry?

    Hello,

    At the moment you only have 4 translations for the Swedish variation of the posts on your website and that’s why most post sitemaps are returning a 404 error for that language.

    When the plugin tries to load the latest posts that should show, for example on the first post sitemap, it cannot find them for the Swedish language as that translation is missing so the sitemap generates a 404 error.

    The only way around this is to make sure that you start translating the pages to Swedish and that includes the taxonomies as well so that our plugin can find those when the sitemap generation occurs.

    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.

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

The ticket ‘Sitemap of one language includes 404 pages and posts of another language’ is closed to new replies.