StayOnSearch

5 Things To Remove From Your XML Sitemap

Mark Thompson May 19, 2010

When creating an XML sitemap, you may want to modify it slightly before you upload it to your server.  There are a number of reasons why you should manually edit your XML sitemap file which include, proper indexation,  URL index limitations (although they have gotten better at indexing larger xml files), and to increase the % of pages that get indexed.

There are tons of XML sitemap generation tools like XML-Sitemaps, XML-Sitemaps, or the Google Sitemap Generator that will help you to create your sitemap, however many of these tools will not take the following into consideration.

  1. URL Duplicates:  Make sure that you don’t include multiple versions of a URL.  For example, if you have domain.com/services and domain.com/services/ make sure you remove one of the URLs so you don’t have any canonical issues.
  2. Robots.txt:  Many of the sitemap generators will look at your robots.txt file and not include the directories or urls that you have already omitted.  Just make sure that those directories are not being included in your sitemap.
  3. Error Pages:  If you notice you have some 404 Error pages in your sitemap, you should either fix those pages so you can include them or remove them from the sitemap.
  4. Images: There is no need to include a list of all of your images in your XML sitemap.  Google will come by and index the images when they index the page, so I wouldn’t try and have Google focus on your images.
  5. Invalid Links: Some sitemap generators will have this option, but ignoring invalid relative links will help you with submitting only valid links to the search engines.

Quick Tip:  Make sure you don’t block your CSS files in your robots.txt file.  Google will want to be able to read your CSS file to ensure that you are not doing anything blackhat with how you display your content.

Tagged with:
7 comments
Julie Cheung
Julie Cheung

Great article, it's important to not have CSS files blocked in the robots.txt file. Also, people make the mistake of including video files into the sitemap, these along with images will not get picked up by the crawlers. Instead, these can be included in a separate video sitemap.

Website Design Sydne
Website Design Sydne

good tips here. We always mistakes the following in creating an XML sitemap.

dhirajch
dhirajch

quick tip is nice, this is the mistake generally we do....:(

Mark Thompson
Mark Thompson

I am not 100% sure what you are asking, but I think you are talking about pages that have lots of external links on a page. I wouldn't worry to much about blocking those pages, however you could restrict the pages in the robot.txt file or a meta noindex nofollow tag.

Al
Al

what about if you have a blog on your page with a lot of articles? How do you include blogs?

danamark
danamark

Thanks for the list. I had never thought about checking a sitemap that closely. Some, like 404 error pages and invalid links are quite obvious, but I had not thought of the Robots.txt file. Thanks.

David Iwanow
David Iwanow

@Mark great points and yes the duplicate and 404 are the 2 biggest items you need to flag and remove from your sitemap.Interesting point about not blocking Google from CSS to show you are following their rules, anyone else shown an impact by blocking their CSS in Robots.txt?

Login to your account

Can't remember your Password ?

Register for this site!