seo - Can I have <loc> element & <sitemapindex> element within the same XML for Sitemap? -


<?xml version="1.0" encoding="utf-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"    xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"    xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">   <url>     <loc>http://www.example.com/foo.html</loc>   </url>   <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">    <sitemap>       <loc>http://www.example.com/sitemap1.xml.gz</loc>       <lastmod>2004-10-01t18:23:17+00:00</lastmod>    </sitemap>    <sitemap>       <loc>http://www.example.com/sitemap2.xml.gz</loc>       <lastmod>2005-01-01</lastmod>    </sitemap>    </sitemapindex> </urlset> 

can have url , sitemapindex within same sitemap xml file? have around 300k plus pages in website. there close 50 static html pages. want add these static urls directly under url tag , dynamic urls create sitemap index.

no, not work. in search console (former webmaster tools) "unexpected tag" error message , sitemap dropped.

your best bet create separate sitemap 50 html pages, , include sitemap in sitemap index file.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -