Support » Plugin: Yoast SEO » Editing an xml file

  • Resolved steveb123


    In the Google Search console I can see that one of my sub sitemaps has 2 errors. It gives the line numbers that the error occurs on. How can I edit/remove these 2 lines?

    Thanks in advance

    Latest versions of Yoast and WP

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support amboutwe


    There are a number of ways to customize the sitemap so it depends on what error occurs and how you want to solve it.

    To remove a URL entirely, please follow these steps:

    If the URL should be indexable, please provide more information about the error, the URL that appears in the sitemap and what URL you want to show in the sitemap.

    Many thanks for your reply

    The error shows as:-
    This is not a valid URL. Please correct it and resubmit.
    Line: 124
    Line: 128

    However when I look at the particular sitemap, it has nothing like that number of lines, 20 or so at most

    I have made some basic adjustments to the site itself and that may take care of things

    Plugin Support Pcosta88



    If the issue still happens let us know. Note, that you may need to clear all your caches. We would also recommend deleting your sitemap in Google Search Console (doing so will not hurt the SEO of your site) and then re-adding it. This guide explains more:

    The errors may drop off

    Plugin Support amboutwe


    This thread has been marked as resolved due to lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!



    Thanks for the help, Finally the error has gone, clearing caches and resubmitting the sitemaps several times, finally got rid of the errors…

    Took a while


    • This reply was modified 3 months ago by  .
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.