XML sitemap broken

#5163
  • Resolved Daryl
    Rank Math free

    Hi elements of my post, page, category xml sitemaps are not working and throwing a 404 error page.
    Saved permalinks again but now updates to error.

    Any advice?

    Thanks

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Your Apache web server is preventing the generation of the dynamic sitemap. Please add the following rewrite rules to your .htaccess file:

    # START of Rank Math Sitemap Rewrite Rules
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END of Rank Math Sitemap Rewrite Rules

    You can find this file on this path Rank Math > General Settings > Edit .htaccess file.

    I hope this information helps. Thank you.

    ​​​​​​​

    Daryl
    Rank Math free

    Thankyou. All sorted. However, I have another issue that I’m not sure if it is related to Rankmath.

    Can you check my site for robots.txt directive? As far as I can tell it is saying index the site but GSC url inspection checker is saying the site is blocked. Any settings with rankmath I should be checking?

    Thanks

    HI Daryl,

    Thanks for the follow up.

    I am glad that the first issue is now resolved 🙂
    In regards to the other issue, everything looks ok on the robots.txt file please check whether the global options have been set to no index by heading over to RM > Titles & Meta > Global Meta.
    Additionally, you can also check whether your site has been set to noindex by heading over to Settings > Reading > Search Engine Visibility.

    I hope this info helps. Thank 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘XML sitemap broken’ is closed to new replies.