Sitemap not available when changing location of sitemap folder

  • We are trying to get the sitemmaps’ link not be the site’s home path (we have a cache netwrok that blocks there XML’s.
    So we have added to functions.php this hook:

    function filter_wpseo_sitemaps_base_url( $base ) {
        $base = '/search-sitemaps/';
        return $base;
    };
    add_filter( 'rank_math/sitemap/base_url', 'filter_wpseo_sitemaps_base_url', 10, 1 );

    In admin it shows the updated URL for sitemaps, but the link leads to a 404 page not found.
    I tried clearing cache, updating permalinks, playing with RM settings – nothing helped.
    We also checked site health with plugin to see if other plugin might be the issue.

    Please your help with this.

    Ron

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    Thank you.

    Hello,

    We were able to reproduce the error and have logged it.

    Please allow us some time to test and release a fix.

    It should be added to the plugin in the upcoming update.

    You can keep an eye on the changelog and we will be mentioning this error when fixed.

    We seek your patience and understanding in this matter.

    In the meantime, if you need any other assistance, please feel free to let us know. We are here to help.

    Thank you.

    Hello,

    We released a quick Beta update to fix the issue.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates

    “beta

    If you are unable to see an update, please clear Rank Math’s transients from:
    WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    “remove

    Please clear the caches, server, and WordPress after updating.

    If the issue is still not resolved, please let us know.

    We are here to assist. Thank you.

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

You must be logged in to reply to this ticket.