Support » Plugin: Yoast SEO » Empty – page-sitemap.xml

  • Resolved rjdougan

    (@rjdougan)


    The page sitemap for my site is empty. I have gone through the steps outlined on https://kb.yoast.com/kb/my-sitemap-is-blank-what-s-wrong/ and have been unable to determine what is wrong.

    In Google Search console the error message for https://seslabs.com/page-sitemap.xml is (Nested indexing This Sitemap Index is referenced by another Sitemap Index.) Search Console shows 126 pages index but not in sitemap.

    I had the Media – attachment set to No and it was generating the https://seslabs.com/attachment-sitemap.xml and would show all the URL. I set this to Yes and that sitemap disappeared and no change for the page-sitemap.xml. I also, re-saved the permalinks to see if it help build the page sitemap but still no luck. The Health Check with all plugins off and only Yoast active still no luck.

    I turn all items except pages off from showing in the sitemap. What next?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • It seems that you have added some rules which redirects page-sitemap. I just checked:

    $ curl -I https://xxxxxxx.com/page-sitemap.xml
    HTTP/1.1 301 Moved Permanently
    Server: nginx/1.14.1
    ....
    X-Redirect-Agent: redirection
    Location: http://xxxxxxx.com/sitemap_index.xml
    
    $ curl -I https://xxxxxxx.com/?sitemap=page
    HTTP/1.1 200 OK
    Server: nginx/1.14.1
    ....
    

    If I get page sitemap via query string then it works. Please check redirects on you server. It seems that’s issue with redirection plugin. Please deactivate it and check again.

    To add to what @stodorovic already mentioned…

    The output of curl shows “x-redirect-agent: redirection” header that comes from redirection plugin by John Godley. Ref: https://redirection.me/support/problems/why-is-it-redirecting/ . I hope that helps.

    Thank you – fixed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Empty – page-sitemap.xml’ is closed to new replies.