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

Cannot create static sitemaps on nextjs with next-sitemap - undefined sitemap.xml

The sitemap files generated using this library with NextJS - have undefined as their site URL. It's not even capturing the priority etc. It seems that the config file isn't loading at all. To Reproduce - Here is a direct link to the sandbox…
Ankit Sharma
  • 164
  • 8
0
votes
1 answer

Unable to Generate Dynamic Sitemap VUE 3 Laravel 9 VITE Project

import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import laravel from 'laravel-vite-plugin'; import viteCompression from 'vite-plugin-compression'; import Pages from 'vite-plugin-pages' import generateSitemap from…
0
votes
0 answers

How to fix Google Webmaster XML Sitemap error

I am getting error on Google search console for XML Sitemap. Sitemap.XML https://example.com/channels/
0
votes
0 answers

if i added manually sitemap.xml file in root folder in ASP.NET MVC Application and published application, it will be read on server without errors?

I have an application on production and SEO Team gave me a sitemap.xml file to add to the project, so I want to know if I added the sitemap.xml file manually to the root folder and published it on the server, there will be errors? and if there is,…
Muhamed Taha
  • 15
  • 1
  • 8
0
votes
0 answers

django Sitemap class alternates not rendering sitemap.xml

I have a problem with adding alternates attribute to my sitemaps.py sitemaps.py class StaticViewSitemap(sitemaps.Sitemap): priority = 0.5 changefreq = 'weekly' protocol = 'https' i18n = True alternates = True def…
Diego Bianchi
  • 601
  • 5
  • 10
0
votes
1 answer

how Creating a xml sitemap in php (1000-1000)

I want to generate a dynamic sitemap in PHP similar to WordPress sitemap that includes items products, posts, and categories divided into 1000-1000. 1- How to create a sitemap for a PHP site? 2- How to divide the sitemap content into 1000-1000?
uzer98
  • 1
  • 1
0
votes
0 answers

Google search console not discovering urls

we have 3 eshops for different countrier which every one is on different URL and the products are automatically pairing stock and translating. We have aroung 6000 products now and the google search console has discovered most of the pages on 1st and…
0
votes
0 answers

broken header on load sitemap.xml for google search

sitemap.xml not work in my host: https://tcg-wallet.ga/ 2022-12-13T17:12:22+00:00
user10771503
0
votes
1 answer

Page URL duplicated twice in the website sitemap

When WordPress website Home Page displays the latest posts, the Rank Math SEO Plugin Sitemap contains the Home Page URL (https://website.com/) twice. In "page_sitemap.xml" and "post_sitemap.xml". I created a static page and blog page as a test, and…
isathemes
  • 1
  • 1
0
votes
0 answers

spatie/laravel-sitemap not adding image sitemap to generated sitemap laravel 8

Below my code as per documentation use Spatie\Sitemap\Sitemap; use Spatie\Sitemap\Tags\Url; $sitemap = Sitemap::create() ->add(Url::create(config('app.url'))) Posts::where(['published'=>true])->each(function (Posts $post)…
0
votes
0 answers

How to edit my sitemap xml file in c# with XmlDocument?

I want to edit my sitemap automatically after calling some function. the parameters are just "add/delete" URL and "URL param". If the URL exist in any of the file - delete the element, else, add new element like that: new…
0
votes
1 answer

Django NoReverseMatch at /sitemap.xml error for static views

I followed the instruction on django documentation, but I am getting this error when trying to create the sitemap.xml for my app. (also the similar questions on stackoverflow were not describing my case) The html pages that I would like to add to…
ali60vip
  • 370
  • 1
  • 5
  • 13
0
votes
1 answer

Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead

I have a website for which I'm trying to submit a sitemap to the google search-console. When I do, I get the error: Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead. My sitemap is in XML, so I don't understand…
Simon Bob
  • 185
  • 2
  • 12
0
votes
1 answer

Cake php root directory file access

Hello community I want to Create custom sitemap in root/public_html directory and i want to view as raalic.us/sitemap.xml So how can i access root directory any file or specific file in cake php?
Mridul
  • 3
  • 1
0
votes
1 answer

How to copy sitemap.xml to build folder with React & Webpack?

I have a sitemap.xml file in public folder. When I build the React application, the sitemap.xml file is not present in the dist/build folder. What Webpack configuration is needed to achieve that? How does robots.txt need to be set up?