Create an XML sitemap
Create an XML sitemap
There are two ways to create an XML sitemap.
The first way
is the cumbersome way.
You are going to create your own sitemap here using the code from sitemaps.org/protocol.html You can find some more useful information on this site. The code to create a sitemap:
<?xml version=”1.0″ encoding=”UTF-8″?
<urlset xmlns=”
http://www.sitemaps.org/schemas/sitemap/0.9
“>
<url>
<loc>http://www.example.com/</loc>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Steps to create a sitemap:
- Start with an opening tag and end with a closing tag.<urlset></urlset>
- Specify the namespace (protocol standard) within the <urlset>
- Specify an entry for each URL, as a parent XML tag.<url>
- Add an underlying entry for each parent tag.<
loc
><url>
All URLs in a sitemap must also come from a single host. Such as www.example.com or store.example.com.
The second way
to create an XML sitemap is through the simple way.
- The first thing you’re going to do here is have the sitemap generated by a sitemap generator.
- When the sitemap is ready, download the XML file.
- Then rename this file to sitemap.xml.
- Finally, you must upload this XML file into the root folder of your website
You could also create an XML sitemap with WordPress.
The final step
Once the XML sitemap is created, you need to do one more important thing. You need to submit the XML sitemap in Google Webmaster Tools. This also allows you to have your site indexed quickly.