• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar

JustBrightMe

Be Smart and Don’t Stop Learning

  • Best Apps
  • How To
  • Banking
  • Make Money
  • Story
Home » SEO » How to add Sitemap to Robots.txt File and Why is it important

How to add Sitemap to Robots.txt File and Why is it important

May 4, 2019 by AMAN SINGH 1 Comment

Today in this article we will tell youHow to add Sitemap to Robots.txt File and Why is it important?

There are thousands of search engines in the world and it is not possible to submit your site to each but when you add your sitemap to your robots.txt file, you do not need to submit your site to all search engines. Here is a guide on how to create a Perfect Robots.txt file for SEO.

However, it is important to submit your site to Google and Bingbut not necessary to add a sitemap to the robots.txt file.

Brief Descriptions of The Content

  • What is Sitemap and Robots.txt File
  • Is it necessary to add a sitemap to a robots.txt file
  • How to add Sitemap to Robots.txt File
  • How to submit Multiple Sitemaps in Robots.txt file

What is Sitemap and Robots.txt File

Sitemap is a list of website URLs that tells search engines about all the pages and posts on your website. As well as how often you update your website. Sitemap XML does not improve your search ranking, but it allows to crawl your website better for search engines.

Robots.txt file helps to understand to search engine bots that which part of the site you want to index and which part Block When search engine spider or web robots come to your site, they follow the robots configuration file on your site and index the part you want to be indexed in search engines.

Is it necessary to add a sitemap to a robots.txt file

This is a question that all bloggers and website owners want to know that adding your sitemap to robots.txt is important.

And it simple answer – No. However, why do we add the sitemap to robots.txt file?

There are many search engines in the world and it is not possible to submit a site on each, but when you add your Sitemap to your robots.txt file, they will easily crawl and index your webpage URLs.

In this way, when you add a sitemap to your site’s robots.txt file, all search engines will be able to see and crawl your sitemap.

So let’s start adding the sitemap to robots.txt…..

How to add Sitemap to Robots.txt File

First, go to the root directory of your site and select the robot.txt file and add your sitemap URL to it by clicking on Edit button.

Sitemap: http://www.example.com/sitemap.xml

Now your robots.txt will look something like this.

Sitemap: http://www.example.com/sitemap.xml

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

A sitemap can be placed anywhere in the robots.txt file. So no matter where you keep it.

How to submit Multiple Sitemaps in Robots.txt file

A sitemap contains 50,000 URLs and if your sitemap is more than 50,000 URLs, then you need to list it as a sitemap index file. The XML format of the sitemap index file is similar to the sitemap file. You can see below,

Sitemap: http://www.example.com/sitemap_index.xml

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Or, you can add different URLs for your multiple Sitemap files

Sitemap: http://www.example.com/sitemap_host1.xml
Sitemap: http://www.example.com/sitemap_host2.xml

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

In this way, you can manage your sitemap with the help of robots txt file. You can comment on any questions or suggestions related to this article.

Find this article helpful? Don’t forget to share!

Related Posts

Filed Under: SEO Tagged With: Beginners Guide, SEO

Reader Interactions

Comments

  1. Hindi ke blogs says

    April 12, 2021 at 7:41 pm

    This is an amazing article to implement robots.txt
    Thanks fromm heart

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Published

How to Change Photo Background Online 2023

How to Change Instagram Password 2023

How to Reset Instagram Password If Forgotten 2023

How to Change Instagram Username 2023

How to Check Instagram Password 2023

How to Earn Money From Meesho App 2023

What is Dailyhunt and how to earn money from it 2023

What Is Google Task Mate and How to Earn Money From It

11 Best Scratch Earning Apps: Scratch and Earn Money 2023

23 Ways How to Earn Money in India as a Student 2023

© 2015–2023 · JustBrightMe | All Rights Reserved · About us · Privacy Policy · Sitemap