Support » Plugin: Yoast SEO » Editing an xml file

  • Resolved steveb123

    (@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

    (@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: https://kb.yoast.com/kb/how-do-i-noindex-urls/

    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

    (@pcosta88)

    Hi,

    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: https://kb.yoast.com/kb/submit-sitemap-search-engines/#google

    The errors may drop off

    Plugin Support amboutwe

    (@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!

    steveb123

    (@steveb123)

    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

    Thanks

    • 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.