Page 1 of 1
are php includes indexed by search engines?
Posted: Sat Mar 15, 2008 10:40 am
by dru_nasty
Say I've got a template page (with my meta keywords) and I use the switch function to include different pages to load within the template like so:
Code: Select all
<?php
switch($_GET['page']){
case "about":
include ("about.php");
break;
......etc.
And I even include my navigation:
Code: Select all
<?php
include ("includes/navigation.php");
?>
Are the includes searched as it were one page, or is this bad practice when it comes to being indexed by a search engine?
Re: are php includes indexed by search engines?
Posted: Sat Mar 15, 2008 1:04 pm
by bertfour
Thank God se's can't look in your source code
A se spider just sees the html output, no worries
Re: are php includes indexed by search engines?
Posted: Sat Mar 15, 2008 1:17 pm
by dru_nasty
Right, but it's not html output until a browser hits the page.
So does a search engine read the include as html?
Re: are php includes indexed by search engines?
Posted: Sat Mar 15, 2008 3:53 pm
by anto91
Of course it does.
Re: are php includes indexed by search engines?
Posted: Sat Mar 15, 2008 5:18 pm
by bertfour
dru_nasty wrote:Right, but it's not html output until a browser hits the page.
So does a search engine read the include as html?
Ehhh, the html generated for "anything" that hits your php page is the same... (normally)
A bot is also a browser

Re: are php includes indexed by search engines?
Posted: Sat Mar 15, 2008 5:32 pm
by dru_nasty
Great, thanks for the replies
