Support » Plugin: Yoast SEO » Sitemap 404 still an issue

  • Resolved Ridgewood2

    (@ridgewood2)


    The 11.3 Yoast update was supposed to fix the sitemap 404ing issue but it in my case it’s still an issue. I’m able to get to the sitemap without a 404 (https://www.ridgewoodpuppies.com/sitemap_index.xml) but your unable to drill into the next level. Specifically the page sitemap (https://www.ridgewoodpuppies.com/page-sitemap.xml). It just times out. The other child sitemaps work fine, and this domain has 2 other subdomains. Identical themes, same server, plugins, httaccess is nearly identical. on both of the sub domains the sitemap and the child sitesmaps have no problem. it’s only the main site and the page sitemap. I’ve tried all the recommended fixes, parmalink fix, disabled all my plugins, reinstalled yoast, tried adding the apache fix to the htaccess. Nothing seems to make any difference. Any other suggestions?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Ideas:
    1) Go to Yoast Seo -> General -> Features tab: disable the sitemap. Then enable the sitemap.
    2) Go to Worpdress -> Settings – Permalinks. Click “Save Changes”.
    3) Do you have many pages? Break the page sitemap into smaller ones, so it takes less time to produce. Add to functions.php

    function max_entries_per_sitemap() {
        return 50;
    }
    add_filter( 'wpseo_sitemap_entries_per_page', 'max_entries_per_sitemap' );
    Plugin Support devnihil

    (@devnihil)

    @ridgewood2 Can you please check whether you are using the additional rewrite rules that listed here?: https://kb.yoast.com/kb/xml-sitemaps-apache/

    If so, these were recently updated due to changes in location of some of the sitemap’s resources. If you are using these rewrite rules can you please try updating those and checking whether it resolves the 404 with the sitemap?

    @ctrlaltdelete, i have done all those things, except for breaking the sitemap up. http://www.ridgewoodpuppies.com is about 70 pages. So i can try that, although store.ridgewoodpuppies.com is over 400, same theme, same plugins, same server. No page sitemap issues. I will give it a shot though. Thank you for the suggestions.

    @devnihil I am using the updated listed sitemap rule in the htacess. Google is now able to read the page sitemap but it’s throwing an error.
    “Sitemap can be read, but has errors
    Sitemap is HTML
    Your sitemap appears to be an HTML page. Please use a supported format instead”

    And this is just the page sitemap for some reason… not the main sitemap index, not the categories, not the tag sitemap. Just page-sitemap.xml. just to reiterate, the other subdomains for this domain are running the same theme, same plugins, same servers without issue. Thanks!

    • This reply was modified 7 months, 3 weeks ago by Ridgewood2.

    @ctrlaltdelete
    Breaking up the sitemap seems to have done it. Except that it’s only generating one 50 item sitemap, without the second of 27 or 28, or whatever the remainder is. Any ideas?

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    If you have changed the sitemap entries per page to 50, there should be more child sitemaps in the sitemap index that will include all the remaining pages.

    Plugin Support jerparx

    (@jerparx)

    Closed. No further questions.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sitemap 404 still an issue’ is closed to new replies.