I have two sitemap index files on my site. One for the primary site and one for the blog in a subfolder. Is it possible to have the primary one send a link to the sub index?
Primary: http://www.traileraddict.com/sitemaps/maps.xml
Sub: http://www.traileraddict.com/article/sitemapindex.xml
Can I just do another sitemap>loc reference to http://www.traileraddict.com/article/sitemapindex.xml in my maps.xml?
Trying to find best way to do this.
Cheers!
Ryan
bigstu
August 23, 2016, 12:04pm
2
Hi Ryan
Yes you can do that
Create a sitemap.xml file in your sitemap folder the add the following
This will reference your two file then you can just submit your sitemap.xml file to the search engine
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.traileraddict.com/sitemaps/maps.xml</loc>
<lastmod>2016-08-23T01:01:00+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.traileraddict.com/article/sitemapindex.xml</loc>
<lastmod>2016-08-23T01:01:00+00:00</lastmod>
</sitemap>
</sitemapindex>
Hope that helps
2 Likes
Yes you can have more than one sitemaps. A simple example is this: http://www.marketresearchandstatistics.com/sitemap_index.xml
Thanks guys. Yes, as bigstu said, I was curious about whether having two sitemap indexes was okay. So he setup an index to reference the two indexes.
Much appreciated!
Ryan
system
Closed
November 23, 2016, 3:20pm
6
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.