Sign in

Google Search Console Reporting That Sitemap.xml is Invalid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1718
    ianbogue

    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:¬†https://blog.tech.ianbogue.com/sitemap.xml

    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.

    Attachments:
    #1720
    ianbogue

    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.