Brian's Blog

items I see across my tribes

Google Sitemap and BlogEngine.NET

January 24
by briancarter 24. January 2009 19:35

Make sure to add you site to Google.  There seem to be some confusion about the Google Sitemap support of BlogEngine.NET, so I thought I would share. First of all, BlogEngine.NET has a build-in sitemap handler so you don’t need to write it yourself.  Here is the sitemap for my Blog.

BlogEngine.NET comes with many build-in handlers such as:

sitemap.axd
microsumary.axd
syndication.axd
commentfeed.axd
opensearch.axd
rsd.axd

All the handlers are accessible by typing http://www.yourblog.com/sitemap.axd where handler can be any one of them. So, in order to see the generated Google Sitemap just type in http://www.yourblog.com/sitemap.axd in your browser.

Auto discovery
You can tell Google manually about the location of your sitemap file or you can put the URL in the robots.txt file. I recommend putting it in the robots.txt because then Yahoo, MSN, Ask and Google can find it. Yahoo, MSN and Ask also supports the Google Sitemap format.

Just uncomment this line to your robots.txt file:

sitemap: http://www.yourblog.com/sitemap.axd

Thank You for listening.

Categories: Development

Comments are closed

 Questions or Feedback, my contact information is located on my About page.


The opinions, thoughts, and comments made in these blog posts are solely my own (unless otherwise stated). They do not reflect the opinions, thoughts or practices of my employer, my universities, my family, or anyone else. Also, I retain the right to change my mind about anything I publish here without having to go back and edit posts that occurred in the past. 

These are my opinions, or just as likely, someone else's opinions that I leveraged for my own.