Answer the question
In order to leave comments, you need to log in
A few questions about the sitemap and how to place images in it correctly?
I am now engaged in the generation of sitemap, here a few questions arose and I would like to ask those who know ...
Here is the standard model
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
http://www.w3.org/1999/xhtml http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd">
<url>
<loc>http://www.example.com/</loc>
<lastmod>2020-01-01</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>http://example.com/page.html</loc>
<image:image>
<image:loc>http://example.com/pic1.jpg</image:loc>
</image:image>
</url>
</urlset>
Answer the question
In order to leave comments, you need to log in
You can stop being masochistic and make a sitemap.txt with the following content:
url
url
...
url
Search engines take only links from the sitemap, they fill in the rest.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question