Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Sitemap not being accepted by google search console

  • #10003
    Avatar photo[anonymous]

    Hello,

    I’m having the exact same issue as this person https://forum.getpublii.com/topic/sitemap-is-not-accepted-by-google/#new-post.  I was going to reply to that post and not create a new one, but it was closed.  Any advice?

    #10004
    Avatar photo[anonymous]

    Update: I downloaded the sitemap, and re-uploaded in the file manager in Publii as sitemap1.xml.  I submitted that to the google search console and it accepted it however it still won’t accept the automatically generated one.

    Screenshot-2023-05-21-at-8.30.10-PM

    #10006
    Avatar photo[anonymous]

    @SnowB0und

    To-date, and all through the numberous Publii updates and upgrades, I’ve not had any problems with Publii sitemap.xml files (I use a now older Apple Mac). Perhaps provide some more details. Are you using the latest version of Publii? Are you using Microsoft Windows? Is your web host Netlify? Etc. Why: some third-party providers may need further configuration compared to others.

    #10018
    Avatar photo[anonymous]

    I’m on the latest version of Publii (Version 0.42.1), macOS, and Netlify.  I just found it odd that it will accept the one I manually download and upload with a different name.

    #10019
    Avatar photo[anonymous]

    @SnowB0und

    While I don’t use Netlify, and maybe a wild guess but another user some time back who also used Netlify seemed to have a similar problem they said below between the <snip> markers:

    <snip>

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

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

    <snip>

    So perhaps check into that.

    The Publii help page for Netlify setup is at: https://getpublii.com/docs/build-a-static-website-with-netlify.html

    Maybe others who do use Netlify can help further if you can’t resolve your problem.

    #10021
    Avatar photo[anonymous]

    itips3727 – Thank you for your help, you got me started down the correct direction.  I added a file called “_sitemaps” and it was a text file containing the line:

    /sitemap* /sitemap.xml

    Deleted all the “couldn’t fetch” site maps from the search console, added sitemap with no .xml and it accepted it.

    This is beyond my understanding of things, but it worked.  It’s weird that if I try to add sitemap.xml it still fails, but if I use a url that hits the redirect it works.