Yoast and SiteMap Index XML: Difference between revisions

mNo edit summary
mNo edit summary
 
Line 24: Line 24:
Instead, just create the physical file sitemap_index.xml in the root directory of the WordPress website.  My preferred solution was to use a hybrid of the two with a note inside of the sitemap_index.xml explaining what I had configured.
Instead, just create the physical file sitemap_index.xml in the root directory of the WordPress website.  My preferred solution was to use a hybrid of the two with a note inside of the sitemap_index.xml explaining what I had configured.


=== Sitemap Index XML File ===
===Sitemap Index XML File===
As noted above, a good starting point is to copy the Yoast sitemap_index.xml code.  More information is available from sitemaps.org (AKA Google), here: https://www.google.com/sitemaps/protocol.html
As noted above, a good starting point is to copy the Yoast sitemap_index.xml code.  More information is available from sitemaps.org (AKA Google), here: https://www.google.com/sitemaps/protocol.html


Take a look at some of the pros to see what they do;
Take a look at some of the pros to see what they do;


* https://www.cnn.com/sitemaps/cnn/index.xml
*https://www.cnn.com/sitemaps/cnn/index.xml
* <nowiki>https://www.microsoft.com/learning/sitemap.xml</nowiki> (not a good example in terms of readability
*<nowiki>https://www.microsoft.com/learning/sitemap.xml</nowiki> (not a good example in terms of readability
* https://www.google.com/sitemap.xml (they're the boss)
*https://www.google.com/sitemap.xml (they're the boss)
 
Where can you find a site's sitemap or sitemap index?  Here: WhatEverURL/robots.txt


Where can you find a site's sitemap or sitemap index?  Here: WhatEverURL/robots.txt (a fairly universal file that dictates what search engines should look for on a site)