PDA

View Full Version : Non PHP RSS


Abbas
10-15-2008, 12:03 PM
One of my scripts cant seem to add external.php to display RSS feeds from the forum but it does work with XML files so I was wondering if there is a way to have .xml files created with vBulletin

Lynne
10-15-2008, 02:59 PM
You may enable xml syndication in vboptions > external data provider > enable xml syndication and then you would get to is through - http://www.example.com/forum/external.php?type=xml I'm thinking, though that you are looking for something more like http://www.example.com/forum/feed.xml and I don't know of a way to get that.

Abbas
10-15-2008, 05:34 PM
I'm thinking, though that you are looking for something more like http://www.example.com/forum/feed.xml and I don't know of a way to get that.

Exactly!

noppid
10-15-2008, 05:57 PM
You could probably pull that off with mod rewrite if you're on apache.

Abbas
10-15-2008, 06:19 PM
You could probably pull that off with mod rewrite if you're on apache.

I am on Apache but have no clue how to "pull it off" :)
If it helps, I have vbSEO installed as well

noppid
10-15-2008, 06:57 PM
Try this in the root folder .htaccess. It's tested and works on my site. I did this for another project in the past.


RewriteEngine on
RewriteRule ^forums/myfile.xml http://www.example.com/forums/external.php?type=rss [L]


The myfile.xml can be any name you want. The file does not have to actually exist. You can also modify the url to be selective on what forum ids are pulled and such and what type output you want. The example is rss. It can be xml or rss2 as well.