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
0
votes
0 answers

Google Search Console Sitemap Error Invalid URL

I am seeing gibberish in my source code as a duplicate url for my Image:loc. Meaning it comes up twice one for example: https://www.acsecapital.com/how-to-get-a-business-line-of-credit/
0
votes
2 answers

Creating a sitemap for SAP Commerce and Spartacus

Does anyone know what I need for my SAP Commerce project in order to provide a sitemap on the url {basesite}/sitemap.xml? Our project has Spartacus for front-end, and therefore no acceleratorstorefront extension, but we do have acceleratorservices…
0
votes
1 answer

Hybris Sitemap doesn't contain all products

I'm having a problem with sitemap generation in Hybris, after successfully finished generation Job, site map doesn't contain all products that must be there.Problem is not related with products.Products url which are not contained in sitemap can be…
0
votes
0 answers

Sitemaps not updating in ruby on rails sitemap_generator

Using sitemap_generator to generate and update sitemaps in my app. It was working fine but from 1 year facing issue that after updating sitemap.rb dozens of times and rake sitemap:refresh that changes not appear on google search console and it…
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
0
votes
1 answer

Yoast XML Sitemaps on Wordpress NGINX server

I'm getting 404 error on my sitemap URL: https://www.smokebuddies.com.br/sitemap_index.xml I've already put that all stuf on nginx.conf file: > location ~ ([^/]*)sitemap(.*).x(m|s)l$ { rewrite ^/sitemap.xml$ /sitemap_index.xml permanent; rewrite…
0
votes
1 answer

Generate sitemap using an excel file with many urls (excel to sitemap)

I have an excel sheet with approximately 100000 urls in it. I need to generate sitemap files which are recommended by Google. The sitemaps should be split using a grouping column. All the rows containing "Mechanical" in a group column should be in a…
Coyote
  • 11
  • 3
0
votes
1 answer

Validation failing for images-sitemap using Java code

I have an images sitemap xml file and I am trying to validate it against a schema using Java code: URL schemaFile = new URL("https://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd"); Source xmlFile = new StreamSource(new…
Ilyas Patel
  • 400
  • 2
  • 11
  • 27
0
votes
0 answers

Can I use hreflang tag in sitemap-index file?

I have a sitemapindex file with sitemap and loc elements. Can I add hreflang attribute to this file, is that logical? Because sitemapindex contains only URLs to other sitemaps.
user10863060
0
votes
1 answer

New pages in Kentico not listing in googlesitemap.xml

Here's the setup: Root site, set up to show in sitemap and is searchable. Page under it doesn't get listed in sitemap (in fact, no pages do). Create a new page with options to show in sitemap and is searchable but is not listed in sitemap xml…
user4593252
  • 3,496
  • 6
  • 29
  • 55
0
votes
1 answer

Remove sitemaps URL from Google results

My webpage with Sitemaps http://foo.com/oddname.php appears within the results of Google if I search "oddname site:foo.com". How could I remove it from appearing in the results without using 'robots.txt'? I do not want anybody to know which my…
Hookstark
  • 1,097
  • 3
  • 11
  • 23
0
votes
1 answer

Unable to generate sitemap.xml for angular 6 build project using Google Sitemap Generator(chrome extension)

Google sitemap generator generates sitemap.xml file for homepage only in angular 6 build project. Cannot generate for other routing url paths as a whole.
0
votes
2 answers

How to change localhost URL in Hybris Sitemap XML

I am trying to create a sitemap.xml for my Hybris site by going out of the box way and copying the ImpEx given in out of the box store in my site.impex. How to change localhost URL in Hybris Sitemap XML? The sitemap.xml generated after running the…
Rachit
  • 403
  • 10
  • 32
0
votes
1 answer

Generating video sitemap not working quite as expected

OK so I have tried numerous things here but can't get the output right for the element string. Here is my desired result:
chris c
  • 321
  • 2
  • 14
0
votes
1 answer

Google sitemap with tx_news

I try to build a google sitemap with typo3 8.7.15, tx_news 6.3.0 and dd_googlesitemap 2.1.4 I chose /?eID=dd_googlesitemap&id=1&sitemap=txnews&singlePid=19&pidList=13&L=0 with singlePid (my site for the detail-page) and pidList with the url of the…
Pavenstaedter
  • 67
  • 2
  • 12
0
votes
0 answers

How to Submit or Get sitemap from google webmaster using php

I have used oauth process to get the sitemap from google webmaster. and followed the steps to generate refresh token from developer key, but i am not getting the results. Here is my code:- $client = new Google_Client(); …
user7200829