There are many ways to create a web site for good search engine optimization. One of the things you should look into is creating a sitemap for your site.
A sitemap is a page that lists all (or at least the most important) pages on a site and the path to them.
Some say it is enough to just list them (the HTML-way) as links (as they are) or as links in a structured list to indicate on which level they are located. Others say that the sitemap should follow a special protocol, a specific xml-structure.
Both will do good to your site but the latter is better since it will provide web crawlers with more hints in a really structured way to do a better job crawling your site. This way is also the official way on how to create and use sitemaps.
All about sitemaps can be found on . How the sitemap should look like is specified in the (the Sitemaps XML format),
The sitemap can be named anything as far as I know even though the common name is sitemap.xml. You can create a static sitemap named sitemap.xml and place in the root of your site or you can create a dynamic one that changes instantly on new changes on the site. And that's also how we have done it here at Wohill.
According to the (where details, examples and further explanations can be found) the sitemap should have the following structure:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.example.com/sublink</loc> <lastmod>2008-04-01</lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url> </urlset> |
Your sitemap should contain url elements (tags) for each page/link on your site. Every link /page is represented by an url-element. The url-element or tag contains four other elements:
loc (the url),
lastmod (when the url was last modified),
changefreq (how often is this modified) and
priority (the importance of this element on your entire site).
Create a static sitemap:
Write it yourself according to the protocol specification or have it done for you using a sitemap generator; for example . It will parse your site for public pages and create a sitemap with default values that you specify before. Place it in the rool of your site named sitemap.xml.
Create a dynamic sitemap:
Write it yourself according to the protocol specification dynamically.
Wohill's sitemap is named . Have a look at it if you want to. It is validated according to several validators so you can safely use it as a reference on how it could look like.
Each time the sitemap is accessed it is recalculated with the most recent content from the database.
More technically the site is build using queries to the database for categories, tags, entries and comments and displayed using php-code and loops.
Making your sitemap visible:
You can submit your sitemap to several places, for example to , and . Google have their and Yahoo their , which noth allows for more advanced settings, especially Googel. Ask provides a special URL you that can use.
| http://submissions.ask.com/ping?sitemap=SitemapUrl |
MSN have no formal interface either. To submit your sitemap to the MSN search index, use the following url:
| http://api.moreover.com/ping?u=http://yourdomain.com/yoursitemap.xml |
You can also, and
should also put a reference to your sitemap in for . The major crawlers Google, Yahoo, MSN and Ask have agreed on a sitemap parameter for the robots.txt. So basically what you should do is
also to create a robots.txt in the root of your site (unless you have one already) and add a row on the following format:
| Sitemap: http://www.example.com/YOUR_SITEMAP |
The bots visiting your site will always look for the robots.txt. This parameter helps them to quckly find the sitemap.
Sitemap validaton:
It is important to have a validated sitemap as well. There are several validators that you can use and some of them are listed below. If you're not sure why it doesn't get validated, then take a close look at the protocol for more details on how the structure should be formed.
-
-
-