How sitemap.xml should be for a website?

sitemap.xml file requires to have a structure and this file must be exists in all web sites as a default feature.

shape
shape
shape
shape
shape
shape
shape
shape
How sitemap.xml should be for a website?

How sitemap.xml should be for a website?

sitemap.xml is a required file for all page. You can follow the steps below to prepare and upload a sitemap.xml to your web site.

it is necessary to work as follows

1. The sitemap.xml file structure should be as follows:

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" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

 

    <url>

         <loc>https://domain.com/loc>

         <lastmod>2022-08-27T09:08:46+00:00lastmod>

         <priority>1.00priority>

    url>

    <url>

         <loc>https://domain.com/contactloc>

         <lastmod>2022-08-27T09:08:46+00:00lastmod>

         <priority>1.00priority>

    url>

    <url>

         <loc>https://domain.com/blogloc>

         <lastmod>2022-08-27T09:08:46+00:00lastmod>

         <priority>1.00priority>

    url>

    

   …

   …

 

>


As you see top part of the file should have some specific links with specific parameters. These parameters actually says that the file will be prepared by taking care of the criteria defined under that links.

2. In this structure you should change domain.com into your domain name with a https. Please be sure that there shouldn't be http before starting the links. All links must start with https. This is one of the criteria of SEO. You should also use www if you plan to present your domain with www to your visitors. You shouldn't use www for a recommendation since it represents a subdomain as default. Also it increase the length of domain name which is not a good idea. However you may prefer to continue with www since it is not something restricted. 

3. You should list all of your links that needs to be indexed. ... part just inserted to make you understand that this file extends to the below with other links, hence you should remove all of them while creating this files.

    4. The 1.00 between the 1.00 tag indicates the pages that should be given Google crawl priority. Here, the priority of all pages in the main categories, including the home page, should be specified as 1.00. This number must be between 0.00 to 1.00.

    5. Any page with a status of 404 as page-not found, such as 404 page, should not be added to this document, including the api structure etc.!

    6. This document should only contain pages belonging to the domain name itself.

    7. Pages such as my profile-update that cannot be reached as a visitor without login should also not to be under this document.

    8. All the links of your web site that you plan to be indexed to Google should be added between the tags  that starts right after the parent tag in the above format.

    9. All links on the web site must be uploaded to a file named sitemap.xml to the root folder as default. Whether you upload this file into your root folder or any other folder you should also show the path to Google via Google Search Console. 

    10. If the sub-domain of the site is to be indexed on Google, sitemap.xml should also be created for them. No sub-domain content should be included in this document to represent main document.

    11. The site name field in the file indicates the shape to be indexed in google. If it is desired to be indexed with www, the link should start with www for each link written by the site name. For example;

        <url>

             <loc>https://www.domain.com/blogloc>

             <lastmod>2022-08-27T09:08:46+00:00lastmod>

             <priority>1.00priority>

        url>


    12. The created file should be added directly to the root of the site (it can be in the form of home folder, public_html in some sites, htdocs folder in some sites).

    Write a comment