Gwin wrote:
> listen, this is what you do for every single one of your pages.
> code
>
> <?xml version="1.0" encoding="UTF-8"?>
> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
> <url>
> <loc>http://www.yourdomain.com/</loc>
> <lastmod>2006-11-11</lastmod>
> <changefreq>weekly</changefreq>
> <priority>0.5</priority>
> </url>
> <url>
> <loc>http://yourdomain.com/index.html</loc>
> <lastmod>2006-11-11</lastmod>
> <changefreq>weekly</changefreq>
> <priority>0.5</priority>
> </url>
> </urlset>
Just to be absolutely pernickety,
it is better I think not to include in the sitemap a URL like
http://yourdomain.com/index.html
when you include the URL
http://yourdomain.com/
because they point to the same page.
Also, there is a new namespace and header for the sitemap,
see sitemaps.org
and the sitemap now is accepted not only
by Google, but also by Yahoo, and soon presumably by MSN, so
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
becomes
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
and you can use the full header if you want
to check the sitemap with XML validators
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
>> Stay informed about: seeking sitemap help