: Sitemap file linked from another Sitemap file I currently have a site setup that, in addition to regular static pages, also has a WordPress blog. This results in my main site having a sitemap.xml
I currently have a site setup that, in addition to regular static pages, also has a WordPress blog. This results in my main site having a sitemap.xml file listing the basic pages and then a sitemap for the WordPress blog posts. I understand that I could create a sitemap_index file and point to each of the sitemap files, but would it be possible to just link to the WordPress sitemap from my regular sitemap file?
For instance:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://www.example.com/wordpress_sitemap.xml</loc>
<changefreq>weekly</changefreq>
<lastmod>2013-04-30T14:10:03+00:00</lastmod>
<priority>1.0</priority>
</url>
More posts by @Si4351233
1 Comments
Sorted by latest first Latest Oldest Best
Unfortunately, only sitemap_index's can have other sitemap's in them. You have two options as far as I can tell:
You could add a sitemap_index, and then link to your other two sitemaps from there.
You could just add both of your sitemaps to your robots.txt file (more info)
Alternatively, you could also disregard both of the above and just submit each of your Sitemaps to Google, Bing, etc. as you see fit (which you should do anyway). That might reduce the number of non-compliant crawler's scraping your website (if they don't know where the Sitemap is, it's harder for them to crawl your whole site).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.