-
Hi,
I got this error when I visit https://sagittarius-one.com/?sitemap=1 or https://sagittarius-one.com/sitemap_index.xml. I tried every item of this artikel but unfortunately with no succes.
I think it’s because of the white space in the code. This is the code in the source code:
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//sagittarius-one.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://sagittarius-one.com/post-sitemap.xml</loc>
<lastmod>2022-11-30T15:29:38+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://sagittarius-one.com/page-sitemap.xml</loc>
<lastmod>2023-05-10T12:49:58+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://sagittarius-one.com/product-sitemap.xml</loc>
<lastmod>2023-05-10T12:02:14+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://sagittarius-one.com/category-sitemap.xml</loc>
<lastmod>2022-11-30T15:29:38+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://sagittarius-one.com/product_cat-sitemap.xml</loc>
<lastmod>2023-05-10T12:02:14+00:00</lastmod>
</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->
A lot of white rules before the code starts. How do I remove this rules (putting code in my functions.php didn’t work). Or which other way can I fix this error?
The ticket ‘error on line 5 at column 6: XML declaration allowed only at the start of the do’ is closed to new replies.