Sitemap error

#464494
  • Resolved Adm cmalex
    Rank Math free

    Hello,

    The sitemap file generated by rank math contains an error.

    “error on line 2 at column 6: XML declaration allowed only at the start of the document”

    I have toubleshoot all the cases you mentioned in your support article but nothing is working.

    The sitemap file is “https://cmalex.net/sitemap_index.xml”

    Thanks.

Viewing 1 replies (of 1 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    The error on your sitemap page suggests there must be some white spaces before the XML Sitemap’s source code.

    Please follow this troubleshooting guide to fix that issue:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    I hope this helps.

    Looking forward to helping 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 1 replies (of 1 total)

The ticket ‘Sitemap error’ is closed to new replies.