Forum Moderators: open
However, content added server-side through an include IS indexed as part of the url.
Server load differences? Probably minimal. Potential ranking differences? Could be big.
Are iframes really bad or just have a bad rep because of the frames of old days?
Frames aren't bad. They don't work on text browsers, so you need to provide an alternative. The issue some people have is that they are not spider friendly. But web sites are made for the readers, not for search engines! Unless you're creating one of those dreadful quick buck con sites we all visit by mistake when we mistype a URL!
Matt
From what I see, content written into the page with javascript document.write is also not indexed.
This begs the question why would content generated by php be indexed and content by java script not indexed? Which leads us back to:
The idea is to port content to other pages. So the questions are:
Is getting the content indexed important?
How can this be done over multiple platforms?
If indexing is not important then it seems that an Iframe would be fine. Just be sure to use the <noframes> tag set for those that have frames turned to off.
If indexing is important then we are left with the multiple platforms question.
why would content generated by php be indexed and content by java script not indexed?
Because javascript is executed on the client side, and php is executed on the server. So the php included content is actually served as part of the document, and the technology being used is not even touched by the spider -- it just gets a completed page.
Why not having html parsing php
using " .htaccess "
try one line or the other
AddHandler application/x-httpd-php .html
OR
AddType application/x-httpd-php .htmlOR
set it up in httpd.conf
find that line:
AddType application/x-httpd-php .php
add .html to the end
AddType application/x-httpd-php .php .html
if you do not have root access ask your ISP to perform it on your behalf.
As an example...
<object data="foo.html" width="500" height="900">Some text for browsers that do not support objects here</object> I would imagine that this suffers from the same indexing problems as <iframe> elements, however.
I've tried and tested just about every way to get my page on other peoples sites and the iframe has worked the best. The only thing I haven't tried is javascript like google ads.