Sitemap urls issue after permalink modification

#751127
  • Resolved Steve Ayo
    Rank Math free

    After I modified my Permalink structure to /blog/%postname%/

    So for custom post type, I have used
    ‘rewrite’ => array( ‘slug’ => ‘portfolio’, ‘with_front’ => false ),

    Just to get rid of /blog/ in between the URLs now the issue is with the sitemap generated by rank math which is indicated in the sensitive data area.

    Leading to 404 page. What do I do to resolve this issue?

Viewing 1 replies (of 1 total)
  • Hello,

    I’m sorry to hear that you are facing issues with your sitemap after modifying your permalink structure. It seems like the changes you made have affected the sitemap generated by Rank Math, leading to a 404 error.

    To resolve this issue, you can follow these steps:

    1. Flush the Sitemap Cache: After making changes to your permalink structure, flush the sitemap cache in Rank Math. You can do this by navigating to Rank Math SEO → Sitemap Settings and changing the Links Per Sitemap as shown in the screenshot below:

    Links Per Sitemap

    1. Save Permalink Settings: Go to Settings → Permalinks in your WordPress admin area and click on the Save Changes button, even if you didn’t make any changes on the page. This will flush the permalinks setting and may fix your sitemap problem.

    If after following these steps, the issue persists, please let us know, and we will be happy to assist you further.

    We hope this helps in resolving the issue with your sitemap URLs after modifying the permalink structure. Thank you for reaching out to us!

    Sources:
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.