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
1
vote
0 answers

XML Sitemap Error on Wordpress - "error on line 10 at column 61: Opening and ending tag mismatch: html line 0 and loc"

I've recently launched a new website and am trying to view my XML sitemap so I can submit it to Google Search Console etc. I did install the RankMath SEO plugin (which I've used before with no issues) and now I get this error when I try to view the…
1
vote
1 answer

Google Search Console not finding all Sitemaps within Sitemap Index. How to fix?

I created a valid Sitemap Index (/sitemap-dec2019/sitemap_index.xml) for a site as follows:
ProgrammerGirl
  • 3,157
  • 7
  • 45
  • 82
1
vote
3 answers

google sitemap protocol - how create sitemap in asp.net 4 for google

hi my dear lords : i have a page like below : <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MySiteNav.aspx.cs" Inherits="Amlak.MySiteNav" %>
SilverLight
  • 19,668
  • 65
  • 192
  • 300
1
vote
2 answers

Google couldn't fetch my sitemap.xml file

I've got a small flask site for my old wow guild and I have been unsuccessful in getting google to read my sitemap.xml file. I was able to successful verify my site using googles Search Console and it seems to crawl it just fine but when I go to…
Hyraxmax
  • 76
  • 2
  • 8
1
vote
1 answer

Serving dynamic sitemap.xml content

How can I serve a dynamic sitemap.xml file from ASP.NET Core 3.1? I tried something like: ... public ActionResult SiteMap() { // logic here return Content("...", "text/xml"); } ...
Amigo
  • 47
  • 8
1
vote
3 answers

How can I build a Google Site Map for my PHP website?

I would like to build a sitemap for my newly developed website in PHP. Can someone help me in building a sitemap for Google?
leo
  • 21
  • 3
1
vote
1 answer

Why Does This Sitemap Fail

I have tried just about everything I can think of and searched through here to no avail. Why does this feed seem to not work in Google Webmaster Tools: https://www.campgroundreviews.com/sitemap A truncated version of it is:
Jafo
  • 1,200
  • 2
  • 11
  • 22
1
vote
1 answer

XML sitemap structure for a movie website

I have a website for movies with page structure as follows: movie-1 movie-1/comments movie-1/cast I'm trying to create a dynamic sitemap for pages and it seems there are 2 options to achieve that. Option 1 The first option is to create a sitemap…
Okan Guner
  • 62
  • 1
  • 8
1
vote
0 answers

Silverstripe and GoogleSitemap

i've just installed the GoogleSitemap for silverstripe and i add all of my object from db to xml and its fine. Also i need to add some routes which are not in database. I used the static class from…
Shrewd
  • 47
  • 7
1
vote
4 answers

Notify Google of sitemap change when any content on website changes

I've used Wordpress's plugin that notifies a few search engines every time you make a new post. However i'm thinking of developing a website that users submit stuff to, how can i use PHP to notify Google with an XML sitemap (or similar method) of…
benhowdle89
  • 36,900
  • 69
  • 202
  • 331
1
vote
1 answer

Multiple sitemap setup for TYPO3 with dd_googlesitemap

I am trying to create a multiple sitemap setup for TYPO3 6.2 with the dd_googlesitemap extension, but from reading the docs I cannot figure out if this is doable with the extension itself. Namely, I have two top-level domains with one codebase, e.g.…
Darko
  • 355
  • 3
  • 17
1
vote
1 answer

Should I list the sitemap index files of all the subdomains in the root domain?

I have a root domain website www.example.com and multiple subdomains - sub1.example.com, sub2.example.com, sub3.example.com. All these subdomains have sitemap index file of their own, sub1.example.com/sitemap_index.xml,…
RAGHU RAMAN
  • 537
  • 4
  • 16
1
vote
2 answers

How to remove attribute from root element in Python xml etree ElementTree

My file contains the following data: Original: daily http://www.example.com Expected:
Yumi
  • 241
  • 2
  • 5
  • 13
1
vote
0 answers

How do you add an SVG with no loc to an xml sitemap?

I'm trying to add an xml sitemap to my site via Google instructions at https://support.google.com/webmasters/answer/183668?hl=en&ref_topic=4581190. My primary goal is to include metadata about several SVGs on my page. These SVGs are defined…
Nicholas
  • 1,974
  • 4
  • 20
  • 46
1
vote
1 answer

delete a node from sitemap xml

I have sitemap format as below. I want to delete a complete node that I find loc. For example: Where a node has with a value of http://www.my.com/en/flight1. I want to delete the node and his child I want to delete loc than lastmod than…
user1688401
  • 1,851
  • 8
  • 47
  • 83