12

Click here to load reader

XML Sitemaps 101

Embed Size (px)

DESCRIPTION

Brief overview of the Sitemaps XML protocol for SEO

Citation preview

Page 1: XML Sitemaps 101

Sitemapswww.mihswat.com

Rafiq Phillips@rafiq

Page 2: XML Sitemaps 101

What are Sitemaps?

Inform Search EnginesAdditional Metadata

Page 3: XML Sitemaps 101

Inform Search Engines

Why would you want to inform Search Engines?

Page 4: XML Sitemaps 101

Additional Metadata

<?xml version="1.0" encoding="UTF-8"?><urlset

xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<url> <loc>http://www.example.com/</loc>

<lastmod>2010-02-04</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority>

</url></urlset>

Page 5: XML Sitemaps 101

Additional Metadata

<loc>http://www.news24.com/</loc>

Must begin with http(s) and end with a trailing /< 2048 characters

Page 6: XML Sitemaps 101

Additional Metadata

<lastmod>2010-02-04</lastmod>

In YYYY-MM-DD format

Page 7: XML Sitemaps 101

Additional Metadata<changefreq>always</changefreq> • always• hourly• daily• weekly• monthly• yearly• never

Page 8: XML Sitemaps 101

Additional Metadata<priority>0.8</priority>

0.0 to 1.0

Page 9: XML Sitemaps 101

Don’t forgetYour Sitemap file must be UTF-8. As with all XML files, any data values (including

URLs) must use entity escape codes for the characters listed in the table below.

Page 10: XML Sitemaps 101

Sitemap Index File<?xml version="1.0" encoding="UTF-8"?>

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap><loc>http://www.example.com/sitemap1.xml.gz</loc> <lastmod>2010-02-04T09:23:17+02:00</lastmod> </sitemap>

</sitemapindex>

Page 11: XML Sitemaps 101

Letting Search Engines KnowRobots.txt “Sitemap:

http://www.news24.com/sitemapindex.xml”Ping the search engines…www.google.com/ping?sitemap=http%3A%2F

%2Fwww.news24.com%2Fsitemapindex.xml(URL encode everything after the /ping?

sitemap=)Google Webmaster Tools, Bing Webmaster

Center, Yahoo! Site Explorer

Page 12: XML Sitemaps 101

More Sitemaps info

Visit http://sitemaps.org/faq.php