View Full Version : php rss feed on html page.
hi,
As everyone knows javascript rss feeds dont help with seo because they dont get spidered.
Does anyone know how to add php rss feed to a html page?
i am having lots of trouble with this. Do you have to add some comands to htacess. in your server?
Any help will be great. thanx
Aaron
sarahk
08-02-2005, 04:41 AM
HTML pages are static and are not able to have serverside changes so unless you can change the pages to allow dynamic processing then you're stuck with javascript.
Sarah
SEO Aaron
08-02-2005, 08:20 PM
Maybe this thread will help
http://www.seo-guy.com/forum/thread8625.html
sarahk
08-02-2005, 08:27 PM
Sorry Aaron, but none of those posts address the problem of putting dynamic content onto a static html page - or did I miss something?
Sarah
Cheers for the help Sarah and Aaron.
Still very confused, program called RSS Reader creates rss php code to put on your websites and it says how to put it on html pages here http://rssfeedreader.com/php.html when i do what it says it doesnt work.
Il have to try somthing else i spose.
Hayz
SEO Aaron
08-03-2005, 12:24 AM
Oh, ok. I thought that the question was simply how to display an rss feed on your website.
If your server supports php then you can use any of those php scripts.
Obviously there is no way to put dynamic into static, that doesn't really make sence. But you can use mod_rewrite in you .htaccess file to make them apear "as if" the pages are static html. Maybe I am totally off track here.. :-) Just tryin' to help out :D
RewriteEngine on
RewriteRule ^([^/]+).html $1.php [L]
thanx for that Aaron, see how i go
jlknauff
08-03-2005, 10:51 PM
[QUOTE=sarahk]HTML pages are static and are not able to have serverside changes[/QUOTE]
Not correct.
You can set your .htaccess to treat html pages like php pages. The script will work then ;)
Ok no worries jlknauff,
Thought it could be done because of the information provided in the link in my second post. but when i put what it says into my .htacccess it doesnt work and my webpage stuffs up.
thanxs anyways.
hayz
sarahk
08-04-2005, 08:45 PM
Do you have the ability to run php scripts?
What happens if you create a script called phpinfo.php and try to run it?
the script should be
<?php
phpinfo();
?>
sarahk
08-04-2005, 08:48 PM
[QUOTE=jlknauff]Not correct.
You can set your .htaccess to treat html pages like php pages. The script will work then ;)[/QUOTE]I guess I was keeping it simple. A standard HTML page is static. You can however give a PHP script a .html extension and still have it processed - but it's not an html page.
vBulletin v3.0.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.