XML Sitemap

Anton Lytvynov
2 min readMar 9, 2020

--

What is it ? And how to work with it ?

Xml Sitemap

The Sitemaps protocol allows a webmaster to inform search engines about URLs on a website that are available for crawling.

Simply, a sitemap is a file that lists all the web pages of your website.

Possible tags :

  • urlset
  • url
  • loc
  • lastmod
  • changefreq
  • priority

The Protocol documentation is really easy and supported on different languages https://www.sitemaps.org

Sitemap.org

Example Xml Sitemap

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://127.0.0.1:8000/</loc>
<changefreq>always</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://127.0.0.1:8000/change_locale?_locale=en</loc>
<changefreq>always</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://127.0.0.1:8000/change_locale?_locale=ru</loc>
<changefreq>always</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://127.0.0.1:8000/change_locale?_locale=ua</loc>
<changefreq>always</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://127.0.0.1:8000/about_us</loc>
<changefreq>monthly</changefreq>
</url>
</urlset>

Share your Sitemap with Google

Google, Bing, so on need to know your sitemap address. Best practice is to use https://your.site.com/sitemap.xml. You can share you site’s sitemap with Google.

Find more information in official https://support.google.com/webmasters/answer/183668?hl=en

Thank you for your attention

Thank you for your attention. If you have any questions feel free to contact me. I‘ll be glad to help you.

Need professional help in web or mobile development?
Recommendation for planning or estimation of your project?
Feel free to contact me here.

P.S. I really appreciate your like or share 🙏.

--

--

Anton Lytvynov
Anton Lytvynov

Written by Anton Lytvynov

CEO & Founder of Lytvynov Production, Senior web developer, architect, cryptocurrencies trader, https://lytvynov-production.com

No responses yet