Forum Moderators: phranque

Message Too Old, No Replies

parsing ssi + php or rss xml

how to add parsed rss to an html page that already has ssi

         

aricci

12:57 am on Dec 22, 2007 (gmt 0)

10+ Year Member



I've just added a wordpress blog to a static html site that uses SSI on every page for nav and headers. I planned to put short excerpts from the blog on the home page and want the bots to read them so javascript won't do, but I've found an rss parser that will convert the rss feed to php.

The trouble is that I now need to parse both SSI and php in the html page and can't get them both to work, just either/or. If the SSI is parsed the php isn't, and vice versa. It's a shared server with Apache 2+, and I'm using htaccess...

for the SSI:
AddHandler server-parsed .html .htm

for the php:
AddType application/x-httpd-php .html .php .htm
AddHandler application/x-httpd-php .html .php .htm

PHP, RSS and wordpress are not my strong suit -- maybe there's a whole 'nuther method I haven't even thought of... Any ideas?

Thanks a ton!

phranque

7:55 am on Dec 22, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



maybe you can set up an output filter with the mod_include module [httpd.apache.org].

[edited by: encyclo at 12:39 am (utc) on Dec. 23, 2007]
[edit reason] fixed link [/edit]

aricci

4:51 pm on Dec 22, 2007 (gmt 0)

10+ Year Member



Thanks, I'll take a look at that.

By the way, the link above doesn't redirect properly to apache.org/docs/2.2/mod/mod_include.html (hope it's ok to add here)