sitemap.xml is important for seo, you need to know about it
Sitemap.xml format
<?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>2022-04-09T12:04:12+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>
<url>
<loc>http://www.example.com/foo.html</loc>
<lastmod>2022-04-09T12:04:12+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
...
</urlset>
Proprety url
loc : it’s the url of your page
- loc (required): Location is the full link of page
- lastmod (optional): last modify your page, UTC timezone:YYYY-MM-DD
- changefreq (optional): change frequency this page, can be: always | hourly | daily | weekly | monthly | yearly | never
- priority (optional): can take values between 0.0 and 1.0
Priority values recommendes
Recommended Priority | Page |
0.8 – 1.0 | Home page, landing pages, product information |
0.4 – 0.7 | Articles, blog posts, FAQs, etc. |
0.0 – 0.3 | Outdated information or old news that has become less relevant |
how to build sitemaps for multi sites or multi sub domain
you should build sime sitemap.xml for each site and regroup them in signle file like this
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.example.com/sitemap1.xml</loc>
<lastmod>2022-04-09T20:40:12+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.example.com/sitemap2.xml</loc>
<lastmod>2022-04-09T20:40:12+00:00</lastmod>
</sitemap>
</sitemapindex>
I hope this post gives you some information about sitemaps.
Click to rate this post!
[Total: 0 Average: 0]