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' );
@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 years, 3 months 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?
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.
Closed. No further questions.