Sign in

Google Search Console Reporting That Sitemap.xml is Invalid

  • This topic has 1 reply, 1 voice, and was last updated 1 year, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1718

    I’m trying to get Google to index my site’s pages. To assist it, I submitted my sitemap.xml file. Google is saying that the file can be read, but the URLs are invalid. I’ve attached a picture of what I see, and here is the link to the sitemap.xml, if it helps:

    I have one theory as to what could be causing this, and that is the use of relative URLs. I’m only using them because I want my links to use my domain and not my Netlify subdomain. If I could figure out how to add the _redirects file to the root, that may fix my problem. I’m very new to this whole method of web design and management so I honestly have no idea :-|. Publii’s documentation on the “Use relative URLs” feature is nonexistent as far as I can tell, and only lists some of the features that don’t work with it enabled.


    Thanks in advance for the help.


    EDIT: Adding the _redirects file to the folder titled “root-files” did the trick.


    To be clear, Publii needs to add clearer documentation regarding the relative URLs feature, as it is very unclear what breaks when it is enabled.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Google Search Console Reporting That Sitemap.xml is Invalid’ is closed to new replies.