David
Thu Jul 14 00:48:20 CDT 2005
Only the second part (setting up MIME Map) is necessary for IIS to serve up
the .rss file as static content.
The Registry part makes Explorer recognize .rss files.
Now, there is backwards compat where IIS will import the Windows MIME Type
list so that you just need to add .rss once, in Explorer, and it works for
both IIS and Windows (no need for the IIS MIME Map setting). However, this
is not as portable since you need to remember to change some Registry key in
addition to copying metabase properties.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Bill J" <bill@progsys.net> wrote in message
news:7udBe.230585$w15.17867@tornado.tampabay.rr.com...
My static RSS feed file finally passes validation at
http://feedvalidator.org and for others looking for the solution here is
what I did:
I added the following into the registry on the IIS machine to recognize .RSS
files as XML documents:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.rss]
@="xmlfile"
"Content Type"="text/xml"
[HKEY_CLASSES_ROOT\.rss\OpenWithList]
[HKEY_CLASSES_ROOT\.rss\OpenWithList\devenv.exe]
@=""
[HKEY_CLASSES_ROOT\.rss\ShellEx]
[HKEY_CLASSES_ROOT\.rss\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{EAB841A0-9550-11cf-8C16-00805F1408F3}"
(Save the above text as a .REG file and then double-click it on the server.)
Then I opened the IIS console, selected the website Properties and then
"HTTP Headers" tab. After clicking on "File Types" under "MIME Map" I added
the new type .RSS as application/rss+xml.
Of course the next step is using something to generate the .RSS file
dynamically, but there are many examples on the web to handle that.
Thanks for all your help!
"Steven Burn" <somewhere@in-time.invalid> wrote
> "Bill J" <bill@progsys.net> wrote ...
>> What I need is to know the name of the RSS feed file? feed.rss?
>
> It makes no difference whether it's feed.rss or mymothersbestmate.rss,
> aslong as it ends in .rss or .xml (the latter being the most common).
>
>> Location of the RSS feed file? Root?
>
> Wherever you like
>
>> When I use a feed validator like
http://feedvalidator.org, it tells me:
>> This feed does not validate.
>>
>> a.. Feeds should not be served with the "text/html; charset=utf-8"
>> media
>> type
>
> You need to set the MIME type for .rss files to that of the MIME type for
> .xml files
>
> Then your RSS file starts with;
>
> <?xml version="1.0" encoding="utf-8"?>
>
> or
>
> <?xml version="2.0" encoding="utf-8"?>
>
> Depending on your version.
>
>> Searching tells me that it is because IIS does not know what a RSS file
>> is
>> and I need to add something to IIS - the same website clearly defines
>> some
>> changes to the .htaccess file in Apache, but I'm not familiar enough with
>> Apache or IIS to be able to translate those changes for IIS.
>>
>> Example:
>>
>>
http://www.elixirsystems.com/seo_tips/rss_feeds_publishing.php
>> If the validator comes back with the error 'Feeds should not be served
>> with the "text/plain" media type' you will need to define the .rss file
>> extension as a RSS file. If you're running Apache the easiest way to do
>> this
>> is to create a .htaccess file in your website's root directory and add
>> the
>> following lines:
>>
>> addtype application/rdf+xml rdf
>> addtype application/rss+xml rss
>> addtype application/atom+xml atom
>> addtype application/xml xml
>>
>> "David Wang [Msft]" <someone@online.microsoft.com> wrote ...
>> > You need the software to generate an RSS file for whatever you want to
>> > stream. IIS is only involved in serving up the RSS file.
>> >
>> > For example, software like Community Server (for blogs) run on IIS and
>> > generate RSS feeds of the blogs. IIS does absolutely nothing other than
>> > host
>> > Community Server, which has code to generate the various RSS feeds. IIS
>> > only
>> > serves up the RSS file when someone requests it.
>> >
>> > I think most of the RSS feed generators would also run on IIS, if the
>> > original software writers wrote it cross-platform (I saw some for
>> > PHP/MySQL -- which also run on IIS and Windows -- and nothing about RSS
>> > is platform specific).
>> >
>> > "Bill J" <bill@progsys.net> wrote in message
>> > news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
>> > I have a Windows 2000 Server running IIS5 and the current website runs
>> > fine.
>> >
>> > I want to add an RSS feed and I have formatted an RSS XML file per
>> > instructions located elsewhere on the Internet.
>> >
>> > I don't know what to name the file in IIS, but I have tried feed.rss
>> > and
>> > rss.xml. What name do I use?
>> >
>> > I assume that I am also supposed to add something else to IIS, but I
>> > don't know what to add.
>> >
>> > I've found plenty of information for Apache, but nothing for IIS.