In this week I was working with search engine optimization for my www.kuokee.co.uk
I found sitemap Protocol is interesting one.
The Sitemap allows us to inform search engines about URLs on our websites. In its simplest form, a Sitemap that uses the Sitemap Protocol is an XML file that lists URLs for a website. It also enables webmasters to include additional information about each URL so that search engines can more intelligently website.
When search engine rank as site it consider how may page available in the site. But in some case browser don’t browse all pages in a website. And Sitemap Protocol is useful on that situation. For example, any website where certain pages are only accessible via a search form would benefit from creating a Sitemap and submitting it to search engines
So site map is a collection on URL for search engine.
Now How to format the site map XML?
Site map is a formatted by xml tags. First of all the site map must be in UTF-8 encoded.
Example of a simple site map is:
< urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9“>
http://www.example.com/
2005-01-01
monthly
0.8
We use tag reference the protocol slandered. Next one is . This tag contains URL of the site and some other information about the url. tag is child tag of contain the URL of the web site. tag contain a date of last modified. The format would be YYYY-MM-DD.
Another two optional tags are and .
Change modified contains the information of how frequently the page is likely to change. We can place any of the parameter from
Always
Hourly
Daily
Weekly
Monthly
Yearly
Never
contain the priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value has no effect on the pages compared to pages on other sites.
The default priority of a page is 0.5.
So a sample example can be like this
<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9“>
http://www.example.com/
2005-01-01
monthly
0.8
http://www.example.com/catalog?item=12&desc=vacation_hawaii
weekly
http://www.example.com/catalog?item=83&desc=vacation_usa
2004-11-23
Once we have created the Sitemap file and placed it on the web server, need to inform the search engines that support this protocol of its location. We can use robots.txt do task.
To specify the location of the Sitemap using a robots.txt simply we have to add the following line of code:
Sitemap:
“sitemap_location” will locket the URL of the site map such as: http://www.example.com/sitemap.xml That’s it.
For more information visit http://www.sitemaps.org/protocol.php
This is pretty easy technique to optimize a website.
Mentors Award Q3 2008
Top Website Coder