Did you know, sometimes google’s bots not able to crawl your website properly due to unoptimized website structure. And a result, not able to index the post on your website.
Suppose, You publish a new post (article) on your website and its not in the search engine, then how much traffic you lose from that post.
An XML Sitemap is a good way to tell search engines that your website is available for indexing or you update a new post on your website.
The primary purpose of using XML sitemap for a website is to help search engine’s bots to crawl website efficiently and increase the visibility of content (like a post, images, video, and pdf etc).
You can tell Google, “Look, this is my site, and here are the pages I want you to index.” Within minutes, Google will respond to your submission, crawl your site, and index your content.
Today’s article is about to address the following things,
- What is XML Sitemap?
- Create XML sitemap
- Check And Test XML sitemap Online
- Limitations For XML Sitemaps
So, lets we start,
What is XML Sitemap?
Let we first understand an XML and Sitemap Term;
- “XML” stands for “Extensible Markup Language,” means a way of displaying information on websites and
- “Sitemap” means how the website is structured and what the website includes.
Search engines use crawlers (called bots) to index and organize information on the web. These Bots can read all kinds of information. But an XML sitemap makes it easy for the bots to see what’s on your website and index it very quickly.
An XML Sitemap is a TEXT file that is full of a list of website’s URLs.
Have a look,
As I told you, it’s a text-based file which contains all the URL of your website.
Note: Yellow color highlighting the URL of the webpage.
The best example to understand “What Is XML sitemap” is House:
Suppose your website is a house and have a lot of rooms like a page. When crawler come to your website like a Guest come to the home. Your guest doesn’t familiar with the hosue structure, if you provide him map or guide like an XML sitemap we provide to Google, then Guest can easily see your all the room with ant dificulties.
So, now we have an idea what is XML sitemap.
Now, Let’s move next!
How To Create XML Sitemap File For Website
It does not matter, you are using a custom design website or using WordPress (or Drupal or Joomla) base design website. An XML Sitemap works perfectly for both. Because all search engine works on the standard XML sitemap protocol.
There is a lot of methods to create an XML sitemap for the website. Few of them are
- Create XML Site Manually For Website
- Create SIte With XML Sitemap Generator Tool
- Create XML sitemap With Plugin (For WordPress)
So, Let’s we starting making sitemap file
Create XML Sitemap Manually For website
Before starting anything, let we create one XML sitemap Manually to understand its syntax and function of the meta tag which allows you to provide additional information about the content of each page.
Step 1: Save a text file (notepad) with extension .xml ( for exmaple, sitemap.xml).
Step 2: Now, we need to tell search engine, how XML sitemap file in encoded.
Paste the following code into the text file.
<?xml version="1.0" encoding="UTF-8"?>
Step 3: Now, We have to add the URL, in the TEXT file by warping it in the URL tag.
Enter the following code in the text file just below the urlset tag.
Description of all the tags
- <urlset> Indicates the beginning and end of a set of URLs to be crawled.
- <loc> is used to link to the page.
- <lastmod> presents the date the page was last modified.
- <Changefreq>, the average change frequency of the page (hourly, daily, weekly, monthly, yearly…). Use ‘never’ for archived URLs.
- <Priority>. Priority values range from 0.0 to 1.0 (1.0 being the most important). The default priority of a page is 0.5.
- Priority has no direct effect on your actual search engine ranking. We typically set the home page at 1.0, important category pages at 0.8, and low priority pages such as Terms of service at 0.2.
- The loc tag is required, the changefreq, lastmod and priority tags are optional.
- Use the same URL tag to add more link in the XML sitemap.
Tips: If your sitemap is too big, you can split it into multiple sitemaps,
Add the link to another Sitemap file into the main sitemap file with some extra tag. For example:
<?xml version="1.0" encoding="UTF-8"?>
So, In this way, we can create XML sitemap manually.
But your job does not end it here. You have to upload XML sitemap file to root directory of the website. If you are not familiar with hosting environment then contact your website developer to help todo this for you.
Now, let us move to create sitemap by using XML Sitemap Genagteor tool
Create Sitemap With XML Sitemap Generator Tool
To create XML sitemap, I personally recommended use “Screamingfrog“. The Screaming Frog is a powerful desktop software that helps you with a whole range of SEO activities and well know for technical SEO.
Note: This tool, provide free crawling for up to 500 pages. To crawl websites larger than 500 pages, you will need to purchase a Screaming Frog license.
So, let’s create XML sitemap by using a screaming frog.
- Download the software and install it on your system.
- Now open and enter the URL of your website in the box and hit the start button.
Screaming frog starts crawling your website and gives you the technical audit report of your website.
After 100% completion.
- Click on the Sitemap and then select “Create XML Sitemap“
Hitechwork have 800+ pages. So, it only takes about a one and half minute.
Note: Create a different XML sitemap for the image too. Not include image in page (article) Sitemap
- After, clicking on “Create XML Sitemap” you will see some option to select,
Leave this option as it is or selects according to your website structure and hit the next button.
If you want to understand the meaning of these two terms then have a look at these two articles.
The tabs “Last Modified,” “Priority,” and “Change Frequency” deal with the date and time that website pages were modified and the <priority> settings. As we did in “Create XML sitemap manually” section.
After doing the setting click on Next and save the XML sitemap file on your computer.
Note: File name should be Sitemap with .xml extension. (for example sitemap.xml )
Congratulations! You’ve created XML sitemap by using XML sitemap generator tool.
Create XML Sitemap Using Plugin
If you are using WordPress, then you can create XML sitemap in just a single click. To do this you can use Yoast Plugin. Yoast
is one of the most popular SEO plugins for WordPress and can handle a lot of technical thing on your website.
Open your WordPress Dashboard and click on Plugin>>ADD_New and install the Yoast SEO plugin. After installing this plugin you will see a new option called SEO on your WordPress side Navigation bar.
- Click on SEO >> XML_Sitemap.
Note: If you not able to see XML sitemap option then click on SEO>>Dashbaord>>Feature and enable “Advanced settings pages” option. Click on enable XML sitemap functionality and save the setting.
- After that click on “XML sitemap” link and you will see something link this.
This is your XML sitemap which is automatically created by yoast plugin.
Now, lets we do some basic setting,
User Sitemap Tab
If your WordPress site has multiple authors, and you want their author archive URLs to be indexed, you can enable this tab.
- I’m using single author website so I disabled it.
Now, click “save changes.”
In this section, you’ll decide which types of posts, page, and Media you want to add in the XML sitemap
Add the page to Sitemap according to your website environment.
Again, click “save changes.”
If you want to exclude any post off of sitemap then you can do it under Exclude Tab.
Just enter the page ID in the box.
Note: Please keep in mind, if you keep a post off of the sitemap, people can still find it, access it, and view it and Google can also index it. User rel nofollow tag to stop indexing of that page.
If you’ve added any posts to the exclusion list, click “save changes.”
These setting totally depending on you and your website environment.
If you not sure what to do, then read “Difference between WordPress category and Tag” and understand the importance of category and tag then make your decision,
Don’t forget to save the setting, If you did any change.
How To Check And Test XML Sitemap
I hope you successfully, Create XML sitemap file for the website, So, now it’s a time to check and test XML Sitemap if working fine or not.
After creating a sitemap, upload it to the root folder of your website and type the following string in the browser to check XML SItemap file is accessible by bots are not.
Yourwebsitename.com/sitemap.xml and you will see something like this if you created XML sitemap manually.
OR, if you are using third party plugin like yoast SEO then you will see something like this,
Note: Yoast generate Multisitemap file, that why you are seeming this sitemap_index.xml in the URL
To Test XML sitemap file, you can use Google webmaster tool. But, First, you have to verify site with Google search engine
- After that click on Crael>>Sitemap.
- Enter the URL of sitemap file and hit the Test button.
- Now, click on View Report and you will see this page.
If you find any error in the Test Report then check your XML sitemap file and fix it, Then again Test it in the webmaster tool and make sure you do not have any error
Note: One error in sitemap file is acceptable but not more than one.
Are There Any Limitations For XML Sitemaps?
XML Sitemaps have a couple of limitations to keep in mind:
- The maximum URL limit in the sitemap is 50.000 URLs.
- Their file size is limited to 50MB when uncompressed.
Note: If your XML Sitemap exceeds these limits you need to split them across multiple XML Sitemaps.
What I do Next?
If you are running a small business website (live a static website), then you no need to use XML sitemap, with the few external backlink google can index all your webpage. But provide more information about your website to google means increase the visibility of your website in the eye of search engine.
If you’ve never created an XML sitemap for your website, my advice is simple: Get one made today.
Remember to share this post with anyone who might benefit from this information, including your Facebook friends, Twitter followers and members of your Google+ group!
Also Support Us By Liking Our Facebook, Twitter, and Google+ Page.
If you have any suggestion or problem about XML sitemap file please feel free to comment below.
Latest posts by Harvinder Singh Sharry (see all)
- How To Find Root Directory Of WordPress Website & Upload Files - January 2, 2018
- Removing URL From Google Console In Bulk By Using Chrome Extension - December 18, 2017
- What Is Robots Meta Tag? It’s Syntax And Different Values - November 18, 2017