• Hi guys,

    When we enable/disable the sitemap(and save the page) on our wordpress multisite, most of the rewrites stop working and as a result only a handful of pages still work, while the rest throw a 404 not found error.

    After reading https://yoast.com/xml-sitemap-in-the-wordpress-seo-plugin/ and looking at the admin-pages-xml-sitemaps.php, we are still not sure if this is standard WordPress SEO behavior, but after some troubleshooting, we found that flushing the permalinks resolves this issue.

    So, the present workaround was to hook into the wpseo_xmlsitemaps_config action and trigger flush_rewrite_rules().

    Any suggestions and insights into this behavior and the fix would be greatly appreciated!

    Thanks in advance!
    zoranc

    WordPress SEO version: 1.7.4

    https://www.ads-software.com/plugins/wordpress-seo/

  • The topic ‘Permalinks issue when the sitemap is enabled/disabled on multisite’ is closed to new replies.