How to create a sitemap.xml for website
A Sitemap allows you to create a file hosted among the other files in your account that informs the search engines of all pages your website contains. In other words, it provides the search engine with detailed information about the content of your website.
Although Sitemaps are mainly used to improve the index process of your website by search engines, they can be used to provide accessibility to certain pages as well. For example, pages that are not accessible via your menus, can be indexed by the search engine if you want.
The best way to understand the structure of the Sitemap is to look at an existing one. Therefore, we have prepared a sample map that you can use for backbone of your personal one. You can copy its code from the lines below, and adjust it to serve your particular needs.
EXAMPLE:
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.domain.com /</loc>
<lastmod>2017-01-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.domain.com/catalog?item=vacation_hawaii</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.domain.com/catalog?item=vacation_new_zealand</loc>
<lastmod>2008-12-23</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.domain.com/catalog?item=vacation_newfoundland</loc>
<lastmod>2008-12-23T18:00:15+00:00</lastmod>
<priority>0.3</priority>
</url>
<url>
<loc>http://www.domain.com/catalog?item=vacation_usa</loc>
<lastmod>2008-11-23</lastmod>
</url>
</urlset>
Why do you need a sitemap?
Search engines like Google are committed to displaying the most relevant results to people for any given search query. In order do this effectively, they use site crawlers to read, organize, and index information on the Internet.
XML sitemaps make it easier for search engine crawlers to read the content on your site and index the pages accordingly.
What's next?
Upload it into the domain root folder of your website.
Post a Comment
0Comments