How to Create a RSS Feed for Your Website?

I know nowadays many blog software and websites have built-in atom/rss feed; but I have a BANS site which provides neither atom nor rss feed. So I want to build one that visitors can subscribe or bookmark my site.

In order to build one, I found out that I have to create a rss.xml file and upload it to my BANS directory in my web server.  You can name it whatever name you prefer to. I then put the following format in that file and save it. See below:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">

<channel>
<title>Name Your Feed Here</title>
<link>http://www.yourdomainname.com</link>
<description>Description of Your Feed Goes Here</description>
<language>en-us</language>
<item>

<title>Article Title Goes Here</title>
<description>Description of Your Article Goes Here</description>
<link>http://www.yourdomainname.com/Article's Permalink Goes Here</link>
</item>
</channel>

</rss>

This is only one item feed; meaning you only have one article in it. If you want to have more items, you can add more. Make sure you change the red color parts to suit your needs.

After that you can check it out from a feed validator to see whether it is a validated feed or not. Just type your website’s url in the text field. If no errors, then you’ve just created a validated feed for your website. Not quite! You still need to present it on your web page so that people can react with it.

How can you implement a rss feed to your web page?

Here is how: you need to save an icon either looks like xml or rss in your images folder on your server. Then put the following codes in your header of your website (mostly an index.php file or a header.php file):

<a href="http://www.yourdomainname.com/rss.xml" title="Subscribe to my feed" rel="alternate" type="application/rss+xml"><img src="http://www.yourdomainname.com/images/rss.png" alt="RSS feed" style="border:0"/></a> <a href="http://www.yourdomainname.com" title="Subscribe to my feed" rel="alternate" type="application/rss+xml">Subscribe in a reader</a>

It will show up on your website like this: rss Subscribe in a reader. Make sure you change the red color of the codes to your own domain name and whatever file name you’ve given to your icon image. Good luck!

Do you like to create a RSS feed for your website? Why or why not? Please leave a comment below.

My Signature

Advertisements

18 responses to “How to Create a RSS Feed for Your Website?

  1. Just dropping by.Btw, you website have great content!

    ______________________________
    Unlimited 24/7 Movie Downloads!!! No time limits, no bandwidth limits, no content limits!!!

  2. I was just reading about how to create an rss feed, thanks. I am going to try it on my website.
    Thanks,
    Kellogg’s Painting

  3. Hello Thomas,
    Thanks for visiting! Let me know whether it works or not.

  4. Thank you for this article.It would be even nicer if you added some remarks about adding a dynamic link
    nice article

  5. Thanks for sharing.I’ll try it

  6. Your article helped me setup an RSS feed on my site, thank you!

  7. Rss feed is one of the best way of search engine’s crawling our website easily.
    In end-user point of view they can know whats updated in site regularly.

  8. Astounding article bro. This kind of is just a exceedingly nicely structured posting, just the tips I was hunting for. Thanks

  9. the written content on this publish is really one particular of the top substance that We have at any time arrive throughout. I adore your submit, I will are available back again to examine for new posts.

  10. You are a amazing writer. You effectively communicated the message.

  11. This is a interesting write up. Looking forward to reading more of your work.

  12. I just tweeted this to you, but thought I’d comment here too that this was a really helpful article.

  13. Superb! Generally I never read whole articles but the way you wrote this information is simply amazing and this kept my interest in reading and I enjoyed it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s