Create the Sitemap file
- Open a new document in a plain-text editor on your computer. On a PC, you can try Notepad; Mac users might work with TextEdit.
- Copy and paste the template below into your document:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.your-site-here.net/</loc>
</url>
<url>
<loc>http://www.your-site-here.net/about_us</loc>
</url>
<url>
<loc>http://www.your-site-here.net/services</loc>
</url>
<url>
<loc>http://www.your-site-here.net/contact_us</loc>
</url>
</urlset>
This template includes the basic information required in every Sitemap. Sitemaps may also include optional information such as the date a page was last changed or the page's priority. For more on optional details, please see the Sitemaps.org protocol page. - Replace the your-site-here.net web addresses in the template with the web addresses of your own pages. (To find your web addresses, visit your published site, click on each page, and look in your browser's address bar.) If you have more than four pages, just copy a url section of the template and paste it below the last url section on your list to make room for each additional web address (see the example marked in red below).
<div class="asp acod"><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.learn2yoga.com/</loc>
</url>
<url>
<loc>http://www.learn2yoga.com/about</loc>
</url>
<url>
<loc>http://www.learn2yoga.com/services</loc>
</url>
<url>
<loc>http://www.learn2yoga.com/contact</loc>
</url>
<url>
<loc>http://www.learn2yoga.com/anotherpage</loc>
</url>
</urlset> - You must save your file as an XML document, which means that instead of ending with .txt, the file should end with .xml. Choose the Save as...option from your editor's File menu to save your file. Name the file sitemap.xml. If you have the option to choose the type and encoding, choose All Files (or XML) and UTF-8, then click Save (you can save the file anywhere on your computer).
Handling special characters in your Sitemap
If any of your web addresses include nonstandard characters, like ampersands (&), you'll need to replace those characters in your Sitemap with special codes called entity escape codes. For example, you'll replace the & symbol with the code & Non-ASCII characters (generally any character you can't type with one button on your keyboard) also require special coding.
You probably won't need to worry about special codes, but if your site includes a blog or certain kinds of PHP pages, for example, you may need to modify some of your web addresses. Learn more about entity escaping on Sitemaps.org.
More information about Sitemaps
For more information about Sitemaps, visit Sitemaps.org, which describes the common Sitemap protocol adopted by all major search engines (including Yahoo, Bing, and Google).
Save your Sitemap in your site's main, or root, directory
Now upload your file to your Web Hosting account. Save the file to your main root directory. In the example above, you'd upload your sitemap.xml file to the main learn2yoga folder.
Submit your Sitemap to search engines
Note: We don't recommend submitting a Sitemap if your domain is pending. You'll want to wait to submit your Sitemap until your published website appears in your personalized domain.
With your Sitemap saved in your account, you're ready to submit the file to search engines. Submitting your Sitemap (such as http://www.learn2yoga.com/sitemap.xml) simply tells the search engines where your Sitemap is located.
The search engines' submission methods vary:
Congratulations! You've submitted your basic Sitemap.
Tip: You'll want to update and resubmit your Sitemap when your site changes. You can resubmit using one of the methods above or set up a robots.txt file to point search engines in the right direction. Learn more.