.htaccess rss and xml as php


#1

Hello, im a little stuck.

im trying to make rss feeds for some news on my site, and im already having a lot of problems.

The first, is that I want to name my .php file that generates the feeds like .rss or .xml.

Im trying to achive these by using an .htaccess. But im missing something here. Maybe my .htaccess is wrong cause I keep getting a 500 Internal Server Error.

Ill try with differents .htaccess and try to upload theam as ASCII too but still getting the 500 :(. Heres the last .htaccess im trying to use:

<FilesMatch “.(rss|xml)$”>
< ForceType application/x-httpd-php >

Im desperate and pretty mad too! any advice?


#2

Already have a working .htaccess that force the xml and rss files to be parsed by php :slight_smile:

<FilesMatch “.(rss|xml)$”>
ForceType application/x-httpd-php

I upload the file with dreamweaver, no idea if it must be uploaded as ASCII or BIN, Ill read if the mode is a must for .htaccess files after.

Ill be reviewing the way of generate (correctly) the feeds. Been reading a lot about how they should look like and the different flavors. Im think im missing something here… I made the XML looks like feeds of other sites but still don’t work.

If I have another specific cuestion will post here again anyway.

Thanks and sorry for the thread.