MimeType for RSS

Found a bug? Tell us!!
Post Reply
gibtsNicht
Regular
Posts: 11
Joined: Tue May 16, 2006 11:06 am
Location: Berlin, Germany
Contact:

MimeType for RSS

Post by gibtsNicht »

I have difficulties with my RSS-Feed. It works just fine, the validators like it and some RSS-Clients i tried have no difficulties, too.

But... I can't define the correct MimeType for the feed because it is an .php-file.

Having seen this Google-Query:
http://www.google.de/search?q=psp+laust ... rt=10&sa=N
I'm on the first place (because of a misspelling of lautstaerke, but anyway...) :)
BUT: Google writes "Fileformat unknown" and links directly to my RSS-Feed (http://www.gibts-doch-garnicht.de/index ... /index.rss)
Of course I want the visitors to visit my HTML-Pages, not the RSS-Feed.

What can I do, it's my own dedicated server, I can configure whatever is needed in the apache ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: MimeType for RSS

Post by garvinhicking »

Hi!

Hm, with this google query you're not on the first page anymore to me. Place #1 is http://www.weltweit-akku.de/product_inf ... ts_id/2081

RSS Feeds don't have a mimetype, they set a content-type. So, actually the bug is with google who does not seem to properly index RSS Feeds and links to the permalinks within RSS feeds.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gibtsNicht
Regular
Posts: 11
Joined: Tue May 16, 2006 11:06 am
Location: Berlin, Germany
Contact:

Post by gibtsNicht »

You are right, I'm the first entry on the second page (and the google-url has something like start=10).

And of course you are right - it's not the the MimeType, it's the ContentType (shame on me)... So I looked in rss.php and found

Code: Select all

header('Content-Type: text/xml; charset=utf-8');
After searching a little bit in the web I found some pages, e.g. this one: http://www.petefreitag.com/item/381.cfm
and therfor I changed this line to

Code: Select all

header('Content-Type: application/rss+xml; charset=utf-8');
I'll watch if it's better now
Last edited by gibtsNicht on Tue May 16, 2006 11:41 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay, I'd be interested in how that changes things. I think there once was a reason why we used text/xml instead of application/rss+xml. I think mainly for Atom Feeds that should render on-screen with a XSLT, but I don'T remember...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply