• Resolved rqcmt

    (@rqcmt)


    ?If sitemap.xml is manually deleted, how can it be regenerated?

    ?Suppose the native sitemap.xml is disabled using a filter hook in the theme’s functions.php.
    Does sitemap.xml stop being generated?
    Will sitemap.xml be regenerated if the theme is changed?

    • This topic was modified 1 year ago by rqcmt.
Viewing 5 replies - 1 through 5 (of 5 total)
  • WordPress core’s XML sitemap URL is wp-sitemap.xml, not sitemap.xml

    And like the default robots.txt file and all WordPress permalinks, wp-sitemap.xml is a virtual file: there’s no physical file to delete.

    Something else is creating your sitemap.xml file (physical or virtual): and that’s not WordPress doing it.

    Thread Starter rqcmt

    (@rqcmt)

    Hi @gappiah

    Thank you for your response.
    I understand that sitemap.xml is a virtual file.

    However, if something else was generating it, I have deleted it.
    Currently, I have changed the theme to the original Twenty Twenty and have not activated any plugins. In this state, do you know why I cannot access sitemap.xml?

    Thread Starter rqcmt

    (@rqcmt)

    Hi @farooqpk

    Thank you for the various information.
    I can imagine that if I reinstall, the sitemap.xml will be built correctly.
    The goal is to regenerate without reinstalling. I’ll try based on the advice you provided.

    Moderator James Huff

    (@macmanx)

    do you know why I cannot access sitemap.xml?

    You can’t, because that’s the wrong URL.

    As George mentioned, yours will be under wp-sitemap.xml

    Thread Starter rqcmt

    (@rqcmt)


    Thank you everyone.

    The issue was caused by a plugin. I fixed the plugin and the problem is now resolved.

    It’s a good reminder to always go back to the basics.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘About the sitemap.xml generated by WordPress core’s wp_sitemaps’ is closed to new replies.