PDA

View Full Version : Apache and RSS/XML


aubreyapple
10-08-2005, 09:07 PM
Does anybody have a quick reference about setting up apache and a web page to do rss feeds? These include the following:

1) How to make apache recognize and serve RSS. I tried this

AddType application/rss+xml rss

but it may not be sufficient.

2) How to create a web page which Firefox recognizes as a rss feed page. Firefox generates this little rss icon at the lower left but trying to dupicate other web pages does not put this icon on my firefox.

There is probably more for the sophisticated, but I want somewhere to find step by step instructions for a very simple case which covers both the web page(s) and the server.

Thanks in advance.

morphis
10-09-2005, 11:52 AM
Add the following in the head your html.
<link rel="alternate" type="application/rss+xml" title="TITLE OF YOUR FEED HERE" href="LINK TO YOUR FEED HERE" />

aubreyapple
10-09-2005, 02:25 PM
Thanks for your reply:

I have this on the main page and there is no effect whatsoever. Note that
the http://wpc/ is a localhost alias for a Virtual host on my apache server.

<link rel="alternate" title="myrss" href="http://wpc/myrss.xml" type="applicaton/rss+xml">

morphis
10-09-2005, 05:51 PM
Thanks for your reply:

I have this on the main page and there is no effect whatsoever. Note that
the http://wpc/ is a localhost alias for a Virtual host on my apache server.



Your missing an i
<link rel="alternate" title="myrss" href="http://wpc/myrss.xml" type="application/rss+xml">

aubreyapple
10-09-2005, 08:11 PM
Great! Must be blind. Now it seems to work perfectly with Apache... Now to try it with IIS where my real web page is!

You have been a big help!