wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 17 people, some anonymous, worked to edit and improve it over time.
This article has been viewed 128,282 times.
Learn more...
Your website’s sitemap is one of the most crucial tools to help increase traffic on your site. Having a good, effective sitemap submitted to the major search engines greatly increases your chances of your site’s content showing up in relevant searches. If you’re trying to earn money from your website, take a few minutes to create and submit your sitemap today. This guide will show you how.
Steps
Creating Your Own
-
1Start a new document in a text editor. The editor should be a plain text editor, such as Notepad on Windows or TextEdit on Mac. This method is best suited for small sites, as you will be manually entering in each page.
-
2Create your sitemap template. Paste the following into your text document. Basic sitemaps are XML files that are submitted to search engines in order for them to be able to read your site easier. By using this format, you can quickly list all of the pages on your site:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.example.com/</loc> </url> <url> <loc>http://www.example.com/page1</loc> <lastmod>YYYY-MM-DD</lastmod> <changefreq>always/hourly/daily/weekly/monthly/yearly/never</changefreq> <priority>1.0</priority> </url> <url> <loc>http://www.example.com/page2</loc> </url> <url> <loc>http://www.example.com/page3</loc> </url> </urlset>
Advertisement -
3Replace the example <loc> with your URLs. Visit your site in a browser and go through each link, copying the URLs from your browser’s address bar and pasting them into the template. If you have more pages than space in the template, simply copy a “<url>” section to the bottom as many times as you need.[1]
-
4Use the optional tags. In the first entry of the example, you will see several tags that can be added to each URL, these are optional but may make crawling your page easier for the bots.
- The <lastmod> tag is the date that your page was last modified.
- The <changefreq> tag shows about how often your page is updated. Always means that it is updated every time a user views it, while Never means that it is archived.
- The <priority> tag allows you to rank the importance of each page on your site in relation to the other pages. This value can range from 0.0 to 1.0. The default priority for all pages is 0.5.
-
5Save the file as an XML file. Click File and select Save As. Use the “Save as type” menu and select All Files. Change the file extension from “.txt” to “.xml” and save the file as “sitemap.xml”.
-
6Upload the sitemap to your server. Once your sitemap file is complete, you need to place it in the root folder of your web server. This is the lowest directory on your web server. The final URL for your sitemap should be www.example.com/sitemap.xml
-
7Submit your sitemap to the search engines. All of the major search engines allow webmasters to submit the URL for the file to their web crawlers. Log into the Webmaster Tools for the search engine that you want to submit to and navigate to the Sitemap section. Paste the URL for your sitemap into the field.
Using a Generator
-
1Browse the available services. There are a variety of sitemap generators available, both free and paid. You can use online services. Server-side tools, or downloaded programs to generate your sitemaps. Free services typically have a 500-1000 page limit. Popular programs and services include:
- InSpyder
- SiteCrawler
- XML-Sitemap
- Free sitemap generator.com
- G-Mapper
-
2Check if your CMS (Content Management System) has a sitemap creation program. Many CMSs such as WordPress have sitemap generators that can be accessed by logging in to your Dashboard. These are often preferable to using a third-part program because they are more suited for the content on your site.[2]
-
3Choose an alternative sitemap. Beyond standard XML sitemaps, there are alternative sitemaps for specific types of sites. If you are building a sitemap for Mobile, Image, News, or Video sites, Google supports specialized sitemaps for those kinds of sites. If you need to build a specialized sitemap, check that the program you are using supports those formats.
-
4Submit your sitemap. All of the major search engines allow webmasters to submit the URL for the file to their web crawlers. Log into the Webmaster Tools for the search engine that you want to submit to and navigate to the Sitemap section. Paste the URL for your sitemap into the field.
- You can also add a reference to your sitemap in your robots.txt file. Simply add the line
Sitemap: http://www.example.com/sitemap.xml
to the file.
- You can also add a reference to your sitemap in your robots.txt file. Simply add the line
References
About This Article
1. Go to https://www.xml-sitemaps.com.
2. Enter your website URL.
3. Click Start.
4. Follow the on-screen instructions.