homepage Welcome to WebmasterWorld Guest from 54.197.108.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
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!

If by 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.

If you do this with Ajax or vanilla Javascript, that content will be less likely to be seen by search engines (though there are some claims it can be seen.) Option A and B are safest.

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...

<?php
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

Mack.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved