Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe and Support WebmasterWorld
Use of Include and search engines The use of include allows search engines to see the code? Maraka msg:3777066 8:38 pm on Oct 30, 2008 (gmt 0) New to web site development. I am planning a new site and would like to use include clause in the html code to easy maintain header and navigation menues. Will it reduce the visibility of keywords and content for search engines like Google? Thanks for any advice.
rocknbil msg:3777465 2:25 pm on Oct 31, 2008 (gmt 0)
Welcome aboard Maraka!
include clause you are talking about SSI includes or PHP, no, both of these output the same text to the browser and that's what the search engine will digest, no problem there.
Maraka msg:3777531 3:51 pm on Oct 31, 2008 (gmt 0)
I was thinking on using PHP. Thanks for your reply. mack msg:3778490 4:39 am on Nov 2, 2008 (gmt 0)
As rocknbil stated, this won't cause you any problems. Using php will work just fine, and search engines won't even see the includes, all they will see is the finished page.
Lets say you have a file called header.php and it contains the text "this is the header"
you also have a footer page containing "this is the footer"
Within your index page you use the following...
include "header.php"; echo"this is the index page"; include "footer.php"; ?>
All the search engine will see is...
this is the header
this is the index page this is the footer