logo CBCE Skill INDIA

Welcome to CBCE Skill INDIA. An ISO 9001:2015 Certified Autonomous Body | Best Quality Computer and Skills Training Provider Organization. Established Under Indian Trust Act 1882, Govt. of India. Identity No. - IV-190200628, and registered under NITI Aayog Govt. of India. Identity No. - WB/2023/0344555. Also registered under Ministry of Micro, Small & Medium Enterprises - MSME (Govt. of India). Registration Number - UDYAM-WB-06-0031863

How to create XML Sitemap?


How to create XML Sitemap

Creating an XML sitemap involves generating a file that lists all the URLs of your website, along with additional information like the last modification date, change frequency, and priority. Here are general steps to create an XML sitemap:

 

Manual Creation:

  1. Plan Your Sitemap Structure:

    • Decide which pages of your website should be included in the sitemap. Consider the hierarchy and organization of your content.
  2. Use a Text Editor:

    • Open a text editor (e.g., Notepad on Windows, TextEdit on macOS, or any code editor like Visual Studio Code, Atom, etc.).
  3. Write the XML Code:

    • Write the XML code for your sitemap. Here's a basic example:
     
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
       <url>
          <loc>https://example.com/page1</loc>
          <lastmod>2023-01-01</lastmod>
          <changefreq>weekly</changefreq>
          <priority>0.8</priority>
       </url>
       <url>
          <loc>https://example.com/page2</loc>
          <lastmod>2023-01-05</lastmod>
          <changefreq>monthly</changefreq>
          <priority>0.6</priority>
       </url>
       <!-- Additional URLs go here -->
    </urlset>
     
    • Customize the <loc>, <lastmod>, <changefreq>, and <priority> elements for each URL.
  4. Save the File:

    • Save the file with a ".xml" extension, such as "sitemap.xml."

 

Automated Tools or Content Management Systems (CMS):

  1. Use CMS Features or Plugins:

    • Many content management systems (CMS) offer built-in features or plugins that automatically generate and update XML sitemaps. For example, WordPress has plugins like Yoast SEO or All in One SEO Pack.
  2. Online Sitemap Generators:

    • There are various online tools that can generate XML sitemaps for you. You provide the URL of your website, and the tool crawls your site to create the sitemap. Examples include Screaming Frog SEO Spider, Google Search Console, and XML-sitemaps.com.

 

Submitting to Search Engines:

Once you have created your XML sitemap, it's essential to submit it to major search engines. Here's how you can do it:

  1. Google Search Console:

    • Log in to Google Search Console.
    • Select your property (website).
    • In the left-hand menu, go to "Sitemaps."
    • Enter the URL of your sitemap and click "Submit."
  2. Bing Webmaster Tools:

    • Log in to Bing Webmaster Tools.
    • Select your site.
    • Go to "Sitemaps" under "Configure My Site."
    • Enter the URL of your sitemap and click "Submit."

 

By submitting your sitemap to search engines, you help them discover and index your content more efficiently. Keep in mind that search engines will still crawl your website even if you don't submit a sitemap, but having one can provide additional information and control over the crawling process.

 

Thank you.

Popular Post:

Give us your feedback!

Your email address will not be published. Required fields are marked *
0 Comments Write Comment