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:
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 or 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):
It will show up on your website like this: 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.