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

Setting up complex sitemap in React-Router (without using react-router-sitemap)

I have a pretty complex sitemap setup for a site with tens of thousands of links. As such, it's divided up among multiple xml files, however my employer also requested that the sitemaps be organized under indexes such that they reflect the site's…
JamesG
  • 11
  • 1
1
vote
1 answer

How to use gatsby sitemap on Amplify

I'm using "gatsby-plugin-sitemap": "^2.4.2" tho, it doesn't work after install "gatsby-plugin-intl": "^0.3.3" on Amplify even tho it works on Local env well. This is the URL, but automatically it's moved to…
uekyo
  • 421
  • 1
  • 4
  • 18
1
vote
1 answer

How do I fix sitemap errors?

Sitemap Doesn't work I can't get the site map URL and I can't use the /sitemap.xml URL How do I fix it?? siteMetadata: { siteUrl: siteAddress.href, // which is "https://www.example.com/" }, { resolve: `gatsby-plugin-sitemap`, options:…
maki
  • 21
  • 2
1
vote
1 answer

I need a loop inside a model query

How can I loop in a model? I have: SitemapGenerator::create(config('app.url')) ->configureCrawler(function (Crawler $crawler) { $crawler->setMaximumDepth(4); …
Alexey
  • 13
  • 1
  • 3
1
vote
1 answer

How do I upload a sitemap.xml file to Heroku?

I am using Node.js. My app is already in production. I created a sitemap.xml in my local directory but it currently identified as Untracked. There are other answers that pertain to Ruby but I am unfamiliar with the language. How do I push my file to…
karjedavpalaa
  • 205
  • 2
  • 11
1
vote
0 answers

How to fix PageContext "URLS_SAFE_CHECK__CONTENT_URL_REWRITED" error for sitemap

Sitemap XML on bottom have the following error. Currently Using multi language sitemap and this is the urlset used. Due to the script tag at the bottom Sitemap is not being fetched by Google. How to fix this.
1
vote
1 answer

Specify sitemap language (same language for all sitemap)

According to Google, you can specify languages in a sitemap like this: http://www.example.com/english/page.html
Sergio
  • 658
  • 1
  • 9
  • 22
1
vote
1 answer

Add sitemap on application based on jhipster

I'm working with application generated with Jhipster. I want add sitemap.xml and robot.txt but follow the angular conventions it seems not working. I've created robot.txt and sitemap.xml under "src/main/webapp/". in my angular.json file i've added …
Pippi
  • 313
  • 1
  • 4
  • 18
1
vote
1 answer

xml sitemap Error class PageContext in laravel

I am making some site map for my site its is work correctly, but at now I have some problem in my sitemap
1
vote
0 answers

How to echo dates in php for sitemap and google consumption

I am creating a sitemap page. How do I echo dates in this format 2020-06-14T00:21:32+00:00 Instead of 2020-06-14 21:32:00
vsol
  • 97
  • 2
  • 10
1
vote
0 answers

How to generate a sitemap.xml from a routes array in Svelte

I am building my routes like this: import Component from "./Component.svelte"; import LangComponent from "./LangComponent.svelte"; const buildRoutes = [ { name: "/", component: Component }, { name: "hello-world", component:…
Gh05d
  • 7,923
  • 7
  • 33
  • 64
1
vote
0 answers

How to add regex expression to Sitemap.xml in laravel?

How I can add regex expression to XML site-map so that I can cover all my routes. These are my routes: Route::get('/page/{id}/customer','CustomerController@index'); Route::get( '/post/{post}/book', 'PostController@book' ); Route::get(…
Marwa
  • 11
  • 2
1
vote
2 answers

sitemap xml parsing in python 3.x

My xml structure are bellow hello world 1 this is…
1
vote
1 answer

ASP.NET 3.1 SiteMap for Google

What is the proper way to create an sitemap for an ASP.NET 3.1 Core with Razor Pages? Also is worth noting I use parameters on a lot of pages is there a way to add those to the sitemap with some class? I have tried creating a sitemap razor page and…
SetupG
  • 155
  • 2
  • 11
1
vote
1 answer

Scraping sitemap index URLs for status code with Beautiful Soup

I'm trying to write a script given the following instruction: Scrape all the URLs into a sitemap index and store the information into an Excel file, specifying for each URL the corresponding status code. I managed to scrape all URLs and store them…