How to add RSS Autodiscovery to your site

web

I sometimes see web sites or blogs that have RSS feeds, but fail to include the one line of HTML that enables RSS autodiscovery. Even some well known blogs such as 37 Signals - Signal Vs Noise omit the feature. Jason Kottke's blog has autodiscovery support on the main page, but not on his entry pages.

Adding that one line of code to your template will make it easier for people to subscribe to your RSS feed. Here's how:

<link rel="alternate" type="application/rss+xml" 
  title="RSS Feed for petefreitag.com" 
  href="/rss/" />

The above link tag should be added inside the head tag of your HTML document.

You will of course need to change the value of the title and href attributes to fit your needs.

If your feed is an ATOM feed you will want to change the type to application/atom+xml.

If you have multiple feeds for the url you can just specify multiple link tags.

When you enable autodiscovery for your rss feed it allows browsers and aggregators to automatically detect the RSS feed when your browsing, and it makes it easy for the user to subscribe to it. Both FireFox, and Safari 2.0 support autodiscovery of RSS feeds out of the box, here's what it looks like when you find one:

firefox autodiscovery button safari autodiscovery button


Related Entries

111 people found this page useful, what do you think?

Trackbacks

Trackback Address: 384/C04401E490763EEC0B244399A528C385

Comments

On 06/15/2005 at 9:30:12 PM EDT freaksauce wrote:
1
That's awesome I wondered why mine wasn't working, thanks Pete!

On 06/16/2005 at 12:12:58 AM EDT Michael Dinowitz wrote:
2
The trailing slash is illegal according to the w3 validator.

On 06/16/2005 at 12:27:21 PM EDT Pete Freitag wrote:
3
Michael - The trailing slash on the link tag is required if your document type is XHTML, if your doctype is HTML 4.0 then you should not have the closing slash on the tag.

On 10/07/2005 at 11:18:48 PM EDT M. Mortazavi wrote:
4
I do not see the RSS icon on Firefox, when I go here, for example:

http://www.washingtonpost.com/wp-adv/rss/front.htm

i.e., I don't see any autodiscovery for it.

On your website, and on the WSJ feed website, I do see the auto-discovery icon on Firefox. I know how to subscribe when the icon is there but how does one subscribe when the icon is not present.

On 11/19/2005 at 1:03:21 PM EST naser wrote:
5
yeah, I use the same trick too :)

On 04/04/2006 at 1:30:55 PM EDT Ray Corbett wrote:
6
Hi,

I inserted the above code in the index.html of my site http://www.search-wiz.info but nothing happened. If you have time look at the site and click on view source and you'll see the code, but nothing is appearing on the page.

I'm new at this, but isn't the graphic above supposed to show up on the page somewhere? And, if so, how do you control where it is going to show up on your page, by just pasting the code between the head tags? Obviously I'm confused.

Help...Ray

On 06/20/2007 at 10:07:55 PM EDT Runstream wrote:
7
We need more people like you educating - Great article!

http://runstream.com

On 06/24/2007 at 9:34:28 PM EDT suray wrote:
8
Great! Remarkable, I've implemented it and it works.

On 06/25/2007 at 5:02:42 AM EDT LeoTheMaster wrote:
9
Is it working for Windows Live Spaces !

On 06/29/2007 at 9:57:57 PM EDT celexa wrote:
10
I want to say - thank you for this!

On 07/11/2007 at 1:16:05 PM EDT Feedst wrote:
11
Guys, Here's an easy way to generate your own autodiscovery tags:

http://www.feedest.com/toolAutodiscovery.cfm

Hope this helps.

On 08/15/2007 at 11:23:16 AM EDT Roman wrote:
12
This works on Netscape and fire fox but not on internet explorer

On 08/24/2007 at 4:48:48 PM EDT Debi Winters wrote:
13
Thank you.

On 10/08/2007 at 12:33:02 PM EDT Alex R. wrote:
14
So how do we know which format of feeds were currently using? On Wordpress I'm running 2.3 'dexter' what feed is this?

www.blogindiversity.com

On 10/09/2007 at 1:03:18 AM EDT cams4life wrote:
15
very nice guys i will post this on my site too sound good, oh take a look at this horny chicks on their web cams, it's free ! www.cams4life.com thanks.. ps: have fun

On 10/17/2007 at 4:49:23 PM EDT Carla Backmon wrote:
16
Hello Pete, I really appreciate the information. I working with the DotNetNuke module and I am hoping that this option is available within the module. They have not got back to me yet about that but if not I put in a request to see if it could be added to the module it would definitely be an asset. New on the Blog Scene, Carla Backmon http://www.savvmari.com

On 11/11/2007 at 6:54:40 PM EST MemoTrek Blogger wrote:
17
Thanks a lot for this tip! Been looking for this for quite some time. As we use Joomla! - and this doesn't seem to be enabled by default this hint was really useful! Cheers!

www.memotrek.com/blog/

On 04/05/2008 at 5:35:26 PM EDT Debi Winters wrote:
18
Thank you.

On 04/10/2008 at 11:16:23 PM EDT David Hepworth wrote:
19
Thank you for the useful advice!

On 04/27/2008 at 5:48:00 AM EDT Kunal wrote:
20
Hi,

Can any one help me with making RSS autodiscoverable when rss is present in iframe of the page????

On 07/17/2008 at 2:21:52 PM EDT Tamela wrote:
21
My recent post is not being updated. I can update my thumbshots but not my posts. And i have been trying for more than a week now. It just keeps saying Last Crawl: Error on whatever date it crawled. I am new at this stuff so can you explain it in layman's terms how I can update my posts. Thank you so much!

On 08/27/2008 at 11:58:24 AM EDT Viv wrote:
22
I am not sure how to add this to my site. I just changed the template and I am having trouble understanding exactly where to place this code.

On 11/07/2008 at 3:16:05 PM EST Daniel Hunt wrote:
23
Thanks Pete, I'll add it to my website to see if it can be discovered.

On 11/30/2008 at 8:16:59 AM EST David S wrote:
24
How did I miss this? Worked first time, thank you :-)

On 01/23/2009 at 11:13:18 AM EST domredsea wrote:
25
an excellent explanation and wonderful blog:)

On 03/12/2009 at 3:56:10 AM EDT Alex wrote:
26
Ow yea! I got working RSS both on Fire fox and IE7.

Booya! http://www.epiclosers.com/

On 07/17/2009 at 7:20:18 PM EDT noah wrote:
27
it works for fine with me, :)

thank you so much....

On 08/02/2009 at 7:17:21 AM EDT 2proo wrote:
28
Thank you for your good advice.

On 08/08/2009 at 8:06:38 AM EDT AcrylicStyle.Com wrote:
29
lol, why does Google help link here?

I mean I understand that this blog post helps, but it's just kinda odd (at least for a large company like Google).

On 09/29/2009 at 5:58:34 AM EDT Shan @ Last Shreds Of Sanity wrote:
30
So where it says:

title="RSS Feed for petefreitag.com" href="/rss/" />

I should put my site name and my feedburner URL after the href=?

I am on blogger.

On 11/06/2009 at 6:40:35 AM EST Longrad wrote:
31
How do I tell if my WP site: www.longrad.com has XHTML or HTML 4.0, i.e. how do I know if I need closing slash on the tag or not?

On 10/18/2010 at 5:11:32 PM EDT Chefwanabe wrote:
32
Dear Pete, I inserted the above code in the head tag of my HTML document. .html of my site chefwanabe.com but nothing happened. I need help. Thanks.

On 03/04/2011 at 9:11:21 AM EST SEO Beratung wrote:
33
Awesome!

Its working! :-)

On 09/16/2012 at 1:13:01 PM EDT sfIsdoevoklfnvt wrote:
34
cheap pills http://www.catherinepicard.net/2007/11/forum-de-la-rno.html?cid=6a00d8341c90fa53ef0176168e91d6970c online drugstore

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?