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
3
votes
2 answers

Why am I getting this error “one or more unbound namespace prefixes” for Sitemap.xml

I have submitted my sitemap.xml into google webmaster tools. We found error such as "The XML Sitemap cannot be parsed because it contains one or more unbound namespace prefixes. For example, this error is generated when is found in a Sitemap…
3
votes
1 answer

How to build a Google Sitemap XML file from HTML

As part of SEO, I need to submit a website's sitemap to Google. But Google is rejecting it saying it is an HTML file and it needs an XML file. How does one convert HTML to XML? I've searched the Google Webmasters page and the net for answers but…
archer9
  • 59
  • 1
  • 5
3
votes
1 answer

XML Sitemap may have max 50.000 URLs. Say I have 1 with 2 's. How many are left? 49.999 or 49.997?

I have a very simple question. An XML Sitemap may have max 50.000 URLs. Say I have 1 < url> with 2 < image:image>'s. How many are left? 49.999 or 49.997?
3
votes
0 answers

Creating an XML sitemap generator

I want to create a XML sitemap generator. I have a script which creates a sitemap if placed in your directory with other files. But I want to create a generator which will work with URL. Here what I actually want to create is, get a URL from user,…
vinit_1791
  • 162
  • 1
  • 2
  • 8
2
votes
1 answer

Google sitemap.xml and duplicate content issues?

After enabling the Google sitemap.xml it seems that it doesn’t give the full urls (including categories). From what I read this seems to be the Magento default. This causes big issues from an SEO point of view because it’s much better to include the…
iagdotme
  • 1,033
  • 2
  • 21
  • 38
2
votes
0 answers

Use Sitemap generated at Back End in Nuxt (Vue) application

I am using Nuxt Robots for the dynamic creation of robots.txt file for different environments. This is my robots config: robots: { UserAgent: '*', Allow: '/', Sitemap: `${process.env.SITE_URL}sitemap.xml` }, But, Sitemap is…
Dasha
  • 21
  • 2
2
votes
1 answer

Google indexes my sitemap as webpage

I have the following problem. My sitemap's content is shown in GOOGLE search results. There is a link to the sitemap on the main page. That can cause it. I have added this URL to GOOGLE as sitemap and I would like it to be treated as sitemap only,…
Jacek Francuz
  • 2,420
  • 8
  • 45
  • 61
2
votes
1 answer

How to add a sitemap.xml in Nextjs

I tried this post XML sitemap for Nextjs but it didn't help me out. How to create a sitemap and robots.txt dynamically add it to nextjs project is my question. I have built a blog using nextjs and mongodb and express js. This is my project structure…
jarivak
  • 828
  • 13
  • 28
2
votes
1 answer

NextJs Dynamic sitemap why get 504 error?

I have a component to create a sitemap dynamically as the code below. the problem is this code work perfectly in my localhost but when it deploy on the server I always get Gateway Timeout-504 error! are there any suggestions am I doing something…
Kasra
  • 119
  • 2
  • 13
2
votes
2 answers

Generating xml sitemap for dynamic routes in Nuxt app

So I'm currently implementing sitemaps for a website that features multiple store fronts. I used nuxt sitemap module to generate a /sitemap/sitemap.xml file for the static pages, like homepage, terms and conditions and privacy policy. Now the…
Sammi
  • 286
  • 1
  • 3
  • 11
2
votes
1 answer

SiteMapPath Stops Displaying in ASP.NET 4

We have a SiteMapPath control on the page and this is bound to an XML Web.sitemap file with the default provider. We've had this site for years and have recently upgraded to ASP.NET 4.0 on IIS 7.5 on Windows 2008 R2. For some reason, after about…
John Fager
  • 452
  • 1
  • 4
  • 16
2
votes
1 answer

How to generate a Google Sitemap with localized versions of a page using PHP and DOMDocument

I want to generate a Google Sitemap using PHP for a multilanguage website. How can i do that the right way, without printing XML strings? Perhaps using the PHP DOMDocument class? The structure must be like the one Google recommends:…
Valeriu Ciuca
  • 2,084
  • 11
  • 14
2
votes
2 answers

Is there a way that is more efficient than sitemap to add/force recrawl/remove your website's index entries in google?

Pretty much that is the question. Is there a way that is more efficient than the standart sitemap.xml to [add/force recrawl/remove] i.e. manage your website's index entries in google? I remember a few years ago I was reading an article of an unknown…
PatlaDJ
  • 1,226
  • 2
  • 17
  • 31
2
votes
1 answer

Sitemap xml tag error for search console: Invalid XML tag

I am having trouble with submitting this master XML to google with 2 sub-sitemap.xml intact. When I submit it to search console for indexing, it gives me this error: Errors Invalid XML tag This tag was not recognized. Please fix it and resubmit.…
JDL
  • 35
  • 1
  • 5
2
votes
0 answers

How to specify which language the content of a URL is in an XML sitemap?

Is there a way to specify the language of a URL in an XML sitemap? I'm not talking about alternate URL's, I'm talking about the case where for example a mostly english site has a page that only exists in German - i.e. there is no alternate…
Magnus
  • 17,157
  • 19
  • 104
  • 189
1 2
3
14 15