Hey guys, Please correct me if I'm wrong... If I'm using php include statement to include my... include(header.html) include(open-layout) ... pulling my content here from mysql to html ... include(footer.html) se bots does not have trouble reading the html with includes. Right? Thanks, RD
hi carolina-advertising, AFAIK, includes will screw up most (if not all) SE crawlers. Be it php, shtml, etc includes. Cheers!
I'm just including the html so I can easily manage the site include html header.html include html layout open.html ... content from database ... include html layout close.html include footer.html you mean to tell me crawlers can't read a php included html file even like your html menu system? thanks, RD
so you mean to tell me if i want to be seo friendly, i'll have to store my html in a $var within a config and then in my pages.... <?php print $header; ?> You mean I need to change all includes to print? thanks, RD EDIT, i'm searching for one of the crawler scripts to crawl my included pages and see if it will let me see what a crawler sees
Server-side includes won't affect search engines. All the SE sees is the final html output -- how the html was generated is neither here nor there. Open the complete web page in your browser and view the source code - that's what the SE sees.
That is what I thought. The crawlers reads the html with includes just as if it is a static html file... Thanks, ~RD
What makes you think that? As Jagnet said, the bot will see the html content generated by the include just as a human user would, and the secret to getting indexed is to always present the same content to the bot as a person would see.