Posted on: 12/27/05 12:25pm
By: Anonymous (linder60)
Hi All,
When I tried to validate my rss feed with a validator, this is the message I got. Does anyone know which files or where I need to make the adjustments ? ---------->
---------------------------------------------------------------------------------------------------
Warning
This feed is valid, but may cause problems for some users. We recommend fixing these problems.
Feeds should not be served with the "text/plain" media type [help]
and then this:
Message
Feeds should not be served with the 'foo' media type
Explanation
The web server is reporting an unexpected MIME type for a feed. Although we tried to parse it as a feed, aggregators may well report this as an error and act as if the user had pointed them at something other than a feed.
RSS feeds should be served as application/rss+xml (RSS 1.0 is an RDF format, so it may be served as application/rdf+xml instead). Atom feeds should use application/atom+xml. Alternatively, for compatibility with widely-deployed web browsers, any of these feeds can use one of the more general XML types - preferably application/xml.
Solution
Use the appropriate MIME type for your feed.
For static content served with Apache, use the AddType directive.
For static content served with Microsoft IIS, add a MIME type.
---------------------------------------------------------------------------------------------------
Thanks,
Linda
Rss Feed not valid when checked with a validator
Posted on: 12/27/05 12:43pm
By: 1000ideen
Maybe you try another feed class
...There are also some extensions available: ...
http://www.geeklog.net/faqman/index.php?op=view&t=16
http://www.geeklog.net/forum/viewtopic.php?showtopic=42229
or wait for GL 1.4.0 as it is included there
Rss Feed not valid when checked with a validator
Posted on: 12/28/05 03:57am
By: Dirk
[QUOTE BY= linder60] Does anyone know which files or where I need to make the adjustments ?[/QUOTE]
As the message states: The feed is not sent out with the correct MIME type.
If you're on Apache, try adding this to your .htaccess:
AddType application/rss+xml .rss
Assuming your feed has an .rss extension. See the validator's message you quoted for details ...
bye, Dirk
Re: Rss Feed not valid when checked with a validator
Posted on: 01/10/09 07:22am
By: Anonymous (bermuda)
Quote by: Dirk Quote by linder60: Does anyone know which files or where I need to make the adjustments ?
As the message states: The feed is not sent out with the correct MIME type.
If you're on Apache, try adding this to your .htaccess:
Text Formatted Code
AddType application/rss+xml .rss
Assuming your feed has an .rss extension. See the validator's message you quoted for details ...
bye, Dirk
Hi Dirk,
Thanks very much indeed for the tip.
I too had this problem and by adding the line to .htaccess file it was solved.
Thanks again.