Mobile app version of vmapp.org
Login or Join
Odierno851

: Xml sitemap structure I have been arguing a point and would like a second opinion. The basic point of contention is as follows: We have a site X with a sitemap index file located at: http://www.x.co.uk/sitemap.xml

@Odierno851

Posted in: #Seo #Sitemap #Xml

I have been arguing a point and would like a second opinion. The basic point of contention is as follows:

We have a site X with a sitemap index file located at:
www.x.co.uk/sitemap.xml

This file lists a number of site maps and the structure for the location of the site maps is:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.x.co.uk/sitemap/date/0.xml</loc>
<lastmod>2011-04-07</lastmod>
</sitemap>
<sitemap>
<loc>http://www.x.co.uk/sitemap/date/1.xml</loc>
<lastmod>2011-04-07</lastmod>
</sitemap>
</sitemapindex>


As far as i understand things search engines will except this just fine and it will not cause any issues.

However the problem being raise is this, because the actual site XML sits under a directory structure like /sitemap/date/ search engines will not include the URLS. My opinion is that this is incorrect. If anyone can clarify that would be great i have read the documentation on Sitemaps Protocol and would welcome any further articles that could be of use.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

3 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

I put mine in a directory structure as I please, but URL rewrite them to exist on the root. I don't think it matters much as long as robots.txt points to the correct absolute location.

10% popularity Vote Up Vote Down


 

@Michele947

I assume you have a robots.txt file and have specified where the sitemaps are. Remember there are many smaller search engines out there. We don't want to make it hard for them. Someday they may be very important.

10% popularity Vote Up Vote Down


 

@Berumen354

Having just done the same thing (placing the referenced sitemap files in a different sub-folder) I can confirm this works fine with no issues.


The XML Sitemap index file doesn't have to be in the root of the site, but it is preferable (for convention)
The Sitemaps referenced by the index file don't have to be in the root of the site folder either

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme