Question

I created an RSS Link today with the help of Code Igniter, and when I go to click on the RSS link, Firefox tries to download the file. The first few times, I downloaded it and made sure there were no errors (there were at first, but now that's sorted). Does anyone know why it keeps trying to download the file, instead of going to the "Add to RSS Reader?" page? Thanks a bunch.

Was it helpful?

Solution

Make sure it's being served with the correct content type:

header('Content-type: application/rss+xml');

You could also try text/xml - there seems to be some debate...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top