25 Comments

Getting Your XML Sitemap Into Google

August 15th, 2007 by Court

To avoid confusion, I’m going to quickly explain the difference between an HTML sitemap and an XML sitemap.

Explanation Of HTML Sitemaps

HTML sitemaps are simple lists of links that visitors to a site can use to explore all of the site’s pages. It looks something like this:

A person can go to my sitemap and find all of my posts organized into categories. Google and other search engines use HTML sitemaps as a resource to find all of your pages. They do this by following all the links to discover each page. This means that as long as all of your pages and posts are on your HTML sitemap Google will be able to find them, assuming you linked to your sitemap from your homepage and your homepage is in Google’s index.

Explanation Of XML Sitemaps

XML sitemaps have nothing to do with the visitors on your site, in fact visitors to your site will never see your XML sitemap. The sole purpose of an XML sitemap is to give search engines a comprehensive list of all the URLs (web pages) in your site. In theory, the natural link structure of your site should lead search engines to all of your pages. However, using an XML sitemap is a good fall back in case Google has a problem loading any of your pages the first time around.

XML sitemaps look something like this:

<urlset>
<url>
<loc>http://courtneytuttle.com/</loc>
<lastmod>2007-08-15T17:33:10+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>
http://courtneytuttle.com/2007/02/25/starting-a-blog-in-5263-words/
</loc>
<lastmod>2007-08-15T11:33:10+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
</urlset>

As you can see, XML sitemaps are basically code that really can’t be read by your normal visitors. If you’re interested in seeing what a full XML sitemap looks like, you can find mine here: Court’s XML Sitemap.

Creating An XML Sitemap For WordPressers

This is where the WordPress users are going to be really happy. There is a simple WordPress plugin that will create the entire sitemap for you. You can find the plugin here: Google Sitemaps. To install it, you can follow these simple steps:

  • Download the plugin.
  • Extract the plugin. You can extract it by right-clicking your mouse on the downloaded file and selecting ‘Extract’ or ‘Extract All’. You’ll have to click ‘next’ a few times.
  • Upload the plugin to the wp-content/plugins folder on your web server. I created special instructions for doing this via FTP here: How To FTP Using FileZilla.
  • Activate the plugin by logging into your WordPress admin, going to ‘Plugins’, finding the ‘Google Sitemaps’ plugin, and clicking ‘Activate’ next to it.

Configuring The Plugin

To configure the plugin, login to your WordPress admin, go to ‘Options’ and click ‘Sitemaps’. I left almost everything how it is with the exception of the ‘Change frequencies’ and ‘Priorities’ sections. Here’s a screen shot of how I configured those sections:

Google Sitemap Settings

Creating An XML Sitemap For Non-WordPressers

Unfortunately this is going to be a pretty big hassle if you don’t have a WordPress blog. You will have to create yours manually using Notepad. Paste this template into Notepad and save the file as ’sitemap.xml’:

<urlset>
<url>
<loc>http://yoururl.com</loc>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
</urlset>

You will have to manually add in each URL in your site. As you can see by looking at the code you will need to add in approximately how often each URL will change, and how important (priority) it is on your site. Your most important page should be set to 1 and your least important should be set to .1. Middle of the road pages will be set to .5 and so on.

This will be pretty time consuming because you need to create a <url> section for each page. An XML sitemap that shows two pages would look like this:

<urlset>
<url>
<loc>http://yoururl.com</loc>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://yoururl.com/second-page-url/</loc>
<changefreq>monthly</changefreq>
<priority>.1</priority>
</url>
</urlset>

Submitting Your Sitemap To Google

To get your XML sitemap into Google, you will need to create an account with Google Webmaster Tools. I would recommend doing it, but not until after your site gets indexed by Google. If you don’t know if you’re indexed, visit this one from the archives: Search Engine Rankings - Where Do You Stand?

Once you get your account, you will login and go to ‘Webmaster Tools’. You will then be prompted to add your site. Add in your site in the following format: http://yoururl.com. They are then going to have you verify that you own the site. After you’ve done that, you will be able to click on the site where it shows this: Manage: http://yoururl.com. You will be taken to a screen where you will find a ‘Sitemaps’ link. You will then find an ‘add a sitemap’ link.

You will then give Google the URL of your sitemap. If you are using the WordPress plugin the URL will be: http://yoururl.com/sitemap.xml. If you created your own you will type the URL where you placed it. That’s it, you’re in!

There is no need to resubmit the sitemap, Google will check back for new versions.

Related Posts:

RSS feed | Trackback URI

25 comments! »

Comment by tallfreak
MyAvatars 0.2

August 15th, 2007 at 1:50 pm

Google sitemaps is great! But on one of my wordpress blogs it just will not install correctly. So I had to use another sitemap that works just as good but takes a day or two longer than google sitemaps to get picked up on the search engines. Here is the link:

http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/

Comment by Court
MyAvatars 0.2

August 15th, 2007 at 3:02 pm

Thanks for the heads up tallfreak! That link will probably help some people out. If you had the problem with a site it could happen to someone else.

Thanks again!

 
 
Comment by Michael Subscribed to comments via email
MyAvatars 0.2

August 15th, 2007 at 2:27 pm

That is really funny that you wrote a whole post about this. I had just asked a question regarding this exact issue. Thanks Court! I did have another question about Yahoo. Is there anything that can be done to help pages be indexed by Yahoo?

Comment by Court
MyAvatars 0.2

August 15th, 2007 at 3:05 pm

Yahoo is just dang slow. I’m barely starting to get traffic from Yahoo on this site and it’s been on the map for 6 months now.

You’re not doing anything wrong - Yahoo is just a mess and needs to fix a lot of things that could make their search results better.

Give it 4 months and you’ll start seeing some traffic from them.

 
 
Comment by Michael Subscribed to comments via email
MyAvatars 0.2

August 15th, 2007 at 3:14 pm

Yeah i kind of figured that was the case. I am really starting to get the hang of this SEO and website stuff. My site has started to take off a little bit. I have been averaging around 350 page views and 175 first time visitors each day for the last 2 weeks. I think that’s pretty good for the site only being two months old. And it’s all thanks to you Court and your advice. Thanks.

Comment by Court
MyAvatars 0.2

August 15th, 2007 at 4:33 pm

Mike that just plain rocks bro. 175 uniques per day in 2 months is awesome and it will just keep growing.

Let me know if you have any more questions, I would love to help you out!

Comment by Michael Subscribed to comments via email
MyAvatars 0.2

August 15th, 2007 at 4:48 pm

Thanks Court! I will let you know if I have more questions. I am looking into starting a contest to give away an iPhone. So i might have some questions on different ways to promote that.

 
 
 
Comment by Gerri Subscribed to comments via email
MyAvatars 0.2

August 15th, 2007 at 4:07 pm

Hey Court, on my non-wordpress blog I use software called gsitecrawler to crawl the blog and upload the xml sitemap and txt url list for yahoo. It works pretty well, although not automatic like the wordpress plugin.

Comment by Court
MyAvatars 0.2

August 15th, 2007 at 4:34 pm

Thanks Gerri! I love it when people pitch in, that’s probably really going to help somebody out there.

 
 
MyAvatars 0.2

August 16th, 2007 at 1:42 pm

With Google Sitemap Generator plugin installed on Wordpress, all the sitemap generation and submission takes place in the background silently while we are busy writing posts on our blog ;)

 
Comment by Paid Surveys
MyAvatars 0.2

August 17th, 2007 at 5:26 am

Thats some really helpful advice, thanks. I’ve used XML sitemaps for my websites but didn’t really understand them fully, just knew they were good for search engines.

 
Comment by Matt Jones
MyAvatars 0.2

August 24th, 2007 at 12:45 pm

Hey Court, the I seemed to have trouble with the Google sitemaps plugin, … but the DD one posted in the 1st comment worked just fine :)

Comment by Gerri Subscribed to comments via email
MyAvatars 0.2

August 24th, 2007 at 7:03 pm

Hey Matt.. I’m of course not Court.. but curious about what problem you are having with the Google sitemap plugin?

 
 
MyAvatars 0.2

September 4th, 2007 at 7:16 am

[…] had an ERROR. Upon further research I discovered this wonderful article by Courtney Tuttle entitled Getting Your XML Sitemap into Google.  This article explains, in basic terms, how to generate and submit a sitemap to Google - in the […]

 
MyAvatars 0.2

September 4th, 2007 at 12:03 pm

[…] few weeks ago, I covered getting your XML sitemap into Google. In that lesson, I covered the differences between XML and HTML sitemaps. In my opinion, both are […]

 
MyAvatars 0.2

November 5th, 2007 at 12:24 pm

[…] 8. Google XML Sitemap - This step is crucial, especially in the beginning when you don’t have as much authority. You can either build this by hand (if you’re out of your mind) or you can use the Google sitemaps plugin.  You can find more about this concept here: Getting Your XML Sitemap Into Google. […]

 
Comment by Martin Subscribed to comments via email
MyAvatars 0.2

November 11th, 2007 at 8:36 am

Instead of setting priority values manually, I suggest you either leave them out or use a sitemap generator than can calculate the values (e.g. based on the internal link structure of the entire website) for you. Check this article:

http://www.micro-sys.dk/developer/articles/xml-sitemap-priority-tag.php

 
MyAvatars 0.2

March 1st, 2008 at 7:12 pm

[…] Google Sitemap - Create an xml sitemap for your blog quickly. Another MUST. Don’t skip this. Here is a great article on how to use the sitmap plugin. […]

 
Comment by maria ozawa
MyAvatars 0.2

March 12th, 2008 at 1:28 pm

i have always been thrilled by the idea how SE really index each part of a website, your article tells me alot

 
MyAvatars 0.2

April 14th, 2008 at 5:37 pm

[…] Getting Your XML Sitemap Into Google - why would you want that? So that Search Engines can come and find you. Enough said. […]

 
Trackback by d2c7f1e0f068
MyAvatars 0.2

May 15th, 2008 at 5:47 pm

d2c7f1e0f068…

d2c7f1e0f06821d1e3ce…

 
Comment by Maria Ozawa Subscribed to comments via email
MyAvatars 0.2

May 19th, 2008 at 3:21 pm

Hi Court, the sitemap generated by this tool appears to be really for the search engine. I wish to put something similar to yours so that real people can also appreciated the sitemap. Can you please tell me how? :)

 
Comment by Gilberto Galea
MyAvatars 0.2

June 2nd, 2008 at 12:12 am

I review other plugin for this facility (sitemap generator), and really I like XML sitemap generato. Easy, fast and automatic. For me, never I’ve any problem with this tool. And I don’t a master blogger, but at my little experience work great!,
And your review for this tool it amazing!, very clear and usefull.
Thanks,

 
Comment by Lee Seats Subscribed to comments via email
MyAvatars 0.2

June 2nd, 2008 at 4:10 am

Court - you mention that you should only submit your sitemap after the site has been indexed. Can you explain why? Thanks.

 
Comment by Andre
MyAvatars 0.2

June 23rd, 2008 at 2:45 am

ok dumb question, but here goes….

So i have an .xml file with the sitemap info on it. I’ve uploaded it onto my site through cpanel. I go to file manager, then a pop up asks me if i want to open the root, public-html etc. I put the .xml file in the public-html folder. Now, how do i know what the url is? since im working in cpanel the url bar has something totally different in it than mysite.com/sitemap.xml . I’ve tried all sorts of different combinations and keep getting errors from google.

 

What do you think? Join the discussion...

Name (required)
E-mail (required - never shown publicly)
Website
Your Comment (smaller size | larger size)