Reputation: 10247
After moving a website from one webserver (Apache 1.3) to another (Apache 2.0 at domainfactory), the W3C feed validator says the feed is correct but has two problems:
The help link didn't help.
Firefox and Chrome show the source code instead of the nice feed view (other feeds are shown correctly).
We are using php 5.3.6 to generate the feed: http://www.stuttmann-karikaturen.de/feed.rss. It's generated as a file, not on-the-fly.
We have tried adding (alternatively) the following lines to .htaccess:
No change. Any ideas?
Kwebbles answer did it for me. In case someone has a similar problem, here's the correct AddType line that worked:
AddType text/xml;charset=iso-8859-1 rss
Upvotes: 1
Views: 521
Reputation: 18559
Don't use .htaccess
, use a PHP header to make those settings.
Upvotes: 0
Reputation: 2075
If the extension of the resource is .rss I think the AddType directives should also use that.
Upvotes: 2