• Resolved yvandupuy

    (@yvandupuy)


    Hi team,

    I have been using a specific plugin concerning sitemaps for a long time now.

    When i made the update, All In one Seo put a sitemap in robots.txt which is wrong and i do not want.

    What is the process to remove it ? see the image below with the arrow.

    https://ibb.co/f0RLjc9

    Best

    Yvan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @yvandupuy,

    It’s actually not us that’s putting that in your robots.txt, but WordPress. If you disable the new built-in sitemap, it should go away.

    You can do this by adding the following two lines to the bottom of your theme’s functions.php file –

    // Disables the built-in WP sitemap.
    remove_action( 'init', 'wp_sitemaps_get_server' );
    add_filter( 'wp_sitemaps_enabled', '__return_false' );

    – Arnaud

    Thread Starter yvandupuy

    (@yvandupuy)

    hey @arnaudbroes

    Thanks it solved my matter. Do you know if Automattic team forecast to put a simple button function in a future update to deactivate it through it ?

    It would be easier

    Yvan

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @yvandupuy,

    WordPress is developed by volunteers, some of which are employed by Automattic, but most of them aren’t. Automattic (wordpress.com) is a commercial company whereas WordPress.org is a non-profit foundation. Not that it really matters, but it’s just a nice little fact. 😉

    In any case, I don’t think the team plans on adding a setting/button to disable it. I believe they expect plugin authors to disable it on their end (AIOSEO for example does this when you enable our sitemap). So I’d reach out to the developer of the sitemap plugin you’re using and ask them to add this in.

    – Arnaud

    Thread Starter yvandupuy

    (@yvandupuy)

    Ok @arnaudbroes

    Thanks for the information about automattic. Thanks also for your information transmission to “XML Sitemap & Google News for WordPress” plugin team. I will wait for their update so, but by the meantime, the matter is solved.

    Best

    Yvan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove a sitemap data in robots.txt ?’ is closed to new replies.