Should Sitemap Index Contain Child Sitemaps With .gz Extension?
Question: Is it required to have
.gz extension for child sitemaps or not?
This is what I found:
Google provides the following sitemap index example:
<?xml version="1.0" encoding="UTF-8"?> <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>
Very similar example can be found on sitemaps.org. As per sitemaps.org:
<loc>- Identifies the location of the Sitemap. This location can be a Sitemap, an Atom file, RSS file or a simple text file.
Both examples don't specify anything about
.gz and I couldn't find any sitemap index example that doesn't contain
.gz. However, all child sitemaps in my case are not gzipped and I'm wondering whether it's right way of doing it or not.
No, gzipping the files is not necessary. From the Sitemaps.org Protocol:
If you would like, you may compress your Sitemap files using gzip to reduce your bandwidth requirement…
Google themselves reference uncompressed Sitemap files: https://www.google.com/sitemap.xml
- → How do I call the value from another backed page form and use it on a component in OctoberCms
- → Inline JS callback syntax Vs Internal JS callback syntax
- → Prevent form action from being followed by robots
- → How to remove parameters from the root URL if it does I18n
- → SEO Canonical URL in Greek characters
- → Htaccess negation
- → Wrapping anchor elements with text
- → Adding schema.org to site
- → dynamic php title depends on page id and using of "if (isset"
- → Building sitemap for 2 wordpress install under 1 domain
- → Bigcommerce Repeating url
- → 301 Redirection from no-www to www in wordpress
- → Wrapper inside or outside HTML5 semantics main, which is best practice?