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

Looping 2 diff tables and output the result inside XML

I found this link fetch_assoc() works only once in a loop but not solved my problem I need to fetch 2 diff tables and result the select something to XML sitemap i need the result to be inside each others: Code:
angtesters
  • 13
  • 1
  • 5
0
votes
1 answer

Use duplicate field names in struct to generate XML sitemap

I'm building a sitemap generator in Go. I want to generate the following URL structure to be complaint with the Google sitemap structure. https://www.website.nl/nl/over-ons
Tom
  • 1,547
  • 7
  • 27
  • 50
0
votes
1 answer

Dynamic sitemap by language

I have several static sitemap (one sitemap for one language, ie sitemap_en.xml, sitemap_de.xml) and i want to deserve a final static sitemap.xml (http://example.com/sitemap.xml) which targets good sitemap depending on language …
Dujard
  • 271
  • 2
  • 7
  • 23
0
votes
2 answers

How to have different change frequency and priority for a list of items in django sitemap?

I have built a static sitemap in my django project as below: class StaticViewSitemap(Sitemap): changefreq = "weekly" priority = 0.9 protocol = 'http' if DEBUG else 'https' def items(self): return ['home', 'contact_us',…
Amin Ba
  • 1,603
  • 1
  • 13
  • 38
0
votes
1 answer

Blazor and Google sitemap.xml

I have a blazor application and a sitemap.xml file on disk. To access this file I use this code: public class SiteMapController : Controller { private IConfiguration _configuration; public SiteMapController(IConfiguration…
ClubberLang
  • 1,624
  • 3
  • 21
  • 45
0
votes
1 answer

ReadTheDocs robots.txt and sitemap.xml

ReadTheDocs auto-generates a robots.txt and sitemap.xml for projects. Each time I deploy a new minor version of my project (ex. 4.1.10), I hide previous minor versions (ex. 4.1.9). ReadTheDocs adds entries for all versions to sitemap.xml, but hidden…
0
votes
1 answer

eleventy: generating each category in a permalink for sitemap

i use Skeleventy to generate my static site. Njk template there uses collections.all to generate sitemap for all possible pages, like so --- permalink: sitemap.xml hidden: true ---
0
votes
0 answers

incorrect pages found in sitemap.xml

What is this issue? The canonical tag for https://hwxcbd.com/nano-cbd-a-real-thing-or-a-marketing-gimmick/ this url is given bellow. Please let me know how to fix this. Is it the http & https difference the main issue. enter image description here
0
votes
1 answer

Custom WP_Sitemaps_Provider sitemap page loading last blog post instead

I have updated to Wordpress 5.5 and want to remove Yoast from the install as its pretty much only used for sitemaps, however need to create a couple of custom sitemaps based on different post types, which I am currently doing with Yoast. I am adding…
0
votes
1 answer

django sitemap.xml documentation contradicts with the original sitemap documetation

I'm creating a sitemap for my django project using the built-in site framework. I have a model with get_absolute_url method using reverse by url name. By default, without any custom/configuration, I got this kind of sitemap:
0
votes
0 answers

Can I create a sitemap.xml from pythonanywhere?

I just finished and deployed my first Django app with pythonanywhere, but I did not know that a sitemap was required. I really wouldn't like doing all the steps in my IDE and then start the deployment process again. Is there a way to implement it at…
Sep
  • 31
  • 2
0
votes
0 answers

Google Sitemap: Errors

I have just submitted my sitemap to google and it is giving below kind of error. Errors are Rating is missing required best and/or worst values Value in property "reviewCount" must be positive Am I missing something in sitemap.xml file? How to fix…
Mighty
  • 317
  • 1
  • 2
  • 11
0
votes
1 answer

How to generate a sitemap.xml using laravel-sitemap without images url?

I am using spatie to generate sitemap.xml. It is working properly as it is expected. But as per some requirement I would like to not include any image url in sitemap.xml. This is my code - public function sitemap(){ $link = …
Abhishek Honrao
  • 780
  • 5
  • 28
0
votes
0 answers

Django Sitemap Error: 'datetime.time' object has no attribute 'timetuple'

I am using Django's built-in sitemap feature to dynamically create sitemap. But I keep getting this error, and I don't know why. Traceback: File "/home/fancychamps/Django…
FightWithCode
  • 2,190
  • 1
  • 13
  • 24
0
votes
0 answers

internal link in sitemap.xml

I have a codeigniter site, it have sitemap.xml but I want to insert there post tags links too. tags); foreach ($tags as $tag):?>