Questions tagged [xml-sitemap]

An XML sitemap is an XML file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Questions related to how XML sitemaps affect SEO are off-topic for Stack Overflow. They may be on-topic at the Webmasters Stack Exchange.

An XML sitemap is an XML file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Search engines like Google read this file to more intelligently crawl your site. A sitemap tells Google which pages and files you think are important in your site, and also provides valuable information about these files: for example, for pages, when the page was last updated, how often the page is changed, and any alternate language versions of a page.

The standard for the protocol can be found at https://www.sitemaps.org/

Here is the format of a basic XML sitemap:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
      <loc>http://www.example.com/</loc>
      <lastmod>2020-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>0.8</priority>
   </url>
</urlset> 
216 questions
4
votes
1 answer

Why won't my sitemap validate after following Google's advice for hreflang elements?

After adding multilingual support to a site I've followed Google advice for their XML sitemap to incorporate hreflang links to alternate language versions. However, after doing this I'm finding various online validators (such as this one) are…
Tom Troughton
  • 3,941
  • 2
  • 37
  • 77
4
votes
2 answers

Google Sitemap Generator error 'is not a supported Apache binary or control script' during installation

I have a LAMP configurated server AMD64 with Ubuntu 14.04 and Apache2 on an EC2 instance. I followed the official guide here, so first I downloaded the sitemap_linux-x86_64-beta1-20091231.tar.gz and unpacked it Then I typed sudo…
NineCattoRules
  • 2,253
  • 6
  • 39
  • 84
4
votes
1 answer

Issues querying google sitemap.xml with Linq to XML

I have a Linq-2-XML query that will not work if a google sitemap that I have created has its urlset element populated with attributes but will work fine if there are no attributes present. Can't query:
Nicholas Murray
  • 13,305
  • 14
  • 65
  • 84
4
votes
3 answers

Google Sitemaps "Compression error" in Webmaster Tools

We're creating Sitemap XML-files and pointing to them in Google Webmaster Tools, which sporadically gives the following error-message to some of the files: Compression error The "How to fix" in Google's documentation doesn't really give any hints…
Seb Nilsson
  • 26,200
  • 30
  • 103
  • 130
4
votes
1 answer

how to generate a Google sitemap for Maven site?

Is it possible to generate Google Sitemap by maven-site-plugin?
yegor256
  • 102,010
  • 123
  • 446
  • 597
3
votes
1 answer

robots.txt and htaccess (while CMS is in sub-folder)

My CMS is placed in a subfolder, so via .htaccess I forward everything. Good for the cms and that following snippet works without any problems, but bad for files like robots.txt, which have to be stored in the web root (e. g.…
Sebastian
  • 625
  • 9
  • 22
3
votes
1 answer

Cannot create sitemaps on nextjs with next-sitemap

I am trying to create dynamic sitemaps for my next-js site with next-sitemap but I'm running into an issue. I have followed the docs and created the following //pages/server-sitemap-index.xml/index.js import axios from "axios"; import {…
Youzef
  • 616
  • 1
  • 6
  • 23
3
votes
1 answer

Create a sitemap.xml programmatically for a multi-language / multi-domain site on the fly

Note: this is not about how do sitemaps work, or how a sitemap structure looks like, neither a SEO related issue. My domains mysite.com and mysite.pt are 2 language versions (EN, PT) of the same site. The content is added/removed dynamically via a…
Vickel
  • 7,879
  • 6
  • 35
  • 56
3
votes
0 answers

Your Sitemap or Sitemap index file doesn't properly declare the namespace

Little help about the issue, I get after adding the sitemap into google webmaster. I get this error in the google webmaster Your Sitemap or Sitemap index file doesn't properly declare the namespace Here is the sitemap code
3
votes
1 answer

Ho do I add sitemap.xml in a react app and make it public?

I have a sitemap.xml in file in /public folder and I want to make it public so that Google can read it from www.my_domain.com/sitemap.xml. How do I do that? EDIT I have taken over the project and this kind of setup is not known to me. This is what I…
jedi
  • 2,003
  • 5
  • 28
  • 66
3
votes
2 answers

Delete sitemap from new Google Webmaster Console

I need to delete in the Google Webmaster Console an old sitemap we don't use anymore and it's generating 404 errors. My problem is in the new Google Webmaster Console I can't find the option to accomplish the delete (like in the older one). And…
Dayron Gallardo
  • 1,502
  • 2
  • 21
  • 37
3
votes
1 answer

Escaped # in URLs, sitemap and handling by Google crawler

We have a large set of URLs of which some contain a hash character. The hash is not to indicate a fragment, but part of the URL path, so we escape the hash by %23, e.g. http://example.com/example%231 http://example.com/another-example%232 … Our…
qqilihq
  • 10,794
  • 7
  • 48
  • 89
3
votes
0 answers

How to create a HTML sitemap for my localhost website?

I have a localhosted website that's not published yet, I need to create a HTML and XML sitemap for it before publishing, is there a way or a tutorial to do so? Thx EDIT Well yes it's a self created CMS, something that's created from scratch, yes…
Joseph Khella
  • 695
  • 1
  • 9
  • 26
3
votes
3 answers

How do I remove duplicate notes from an XML document in Perl?

I have a sitemap video file xml with duplicated nodes :
akram1rekik
  • 153
  • 1
  • 1
  • 7
3
votes
1 answer

Magento 1.9.1.0 - Unable to generate the sitemap

I guess if you meet the same error when trying to create the Google Sitemap from Magento 1.9.1.0 backend (Unable to generate the sitemap). Under is what I found from the Exception Log: 2015-05-09T09:52:02+00:00 DEBUG (7): Exception message:…
1
2
3
14 15