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 an 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 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 of what is the 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"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> </urlset>
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.
<url> <loc>http://www.website.com/</loc> <lastmod>2012-12-12</lastmod> <changefreq>daily</changefreq> <priority>1</priority> </url>
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 links 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"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.website.com/sitemap1.xml</loc> </sitemap> <sitemap> <loc>http://www.website.com/sitemap2.xml</loc> </sitemap> </sitemapindex>
So, In this way, we can create an XML sitemap manually.
But your job does not end it here. You have to upload the XML sitemap file to the root directory of the website. If you are not familiar with the hosting environment then contact your website developer to help todo this for you.
Now, let us move to create a sitemap by using XML Sitemap Genagteor tool
Create Sitemap With XML Sitemap Generator Tool
To create an 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, provides 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 an 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 has 800+ pages. So, it only takes about a one and half minutes.
Note: Create a different XML sitemap for the image too. Not include an 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 the “Create XML sitemap manually” section.
After doing the setting click on Next and save the XML sitemap file on your computer.
Note: Filename should be Sitemap with .xml extension. (for example sitemap.xml )
Congratulations! You’ve created an XML sitemap by using the XML sitemap generator tool.
Create XML Sitemap Using Plugin
If you are using WordPress, then you can create an 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 things 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 the “Advanced settings pages” option. Click on enable XML sitemap functionality and save the setting.
- After that click on the “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 a 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 settings totally depending on you and your website environment.
If you are 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 an 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 the XML SItemap file is accessible by bots are not.
Yourwebsitename.com/sitemap.xml and you will see something like this if you created an 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 the XML sitemap file, you can use the Google webmaster tool. But, First, you have to verify the 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 an 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 engines.
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 problems about XML sitemap file please feel free to comment below.
- Philo vs Sling TV in 2021 – Which One is Better? - July 29, 2020
- How to Create FREE Edu Email in 2021 [100% Working Method] - July 27, 2020
- How to Add Bots to Discord Server [2020-21] - July 22, 2020