How include helps SEO?

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

How include helps SEO?

Postby jay » Wed Nov 22, 2006 12:28 am

Hi,

I would like to know how 'include' helps in SEO.

By using html we can include javascript and images. But if we are including files using php or asp is it SEO friendly, especially quick contact forms which are same throughout the site.


With :)
Jay.
jay
 
Posts: 475
Joined: Wed Nov 22, 2006 12:05 am
Location: Cochin, India.

How Are Includes SEO Friendly

Postby admin@techwyse.com » Wed Nov 22, 2006 7:24 am

I am not a programmer but from what I know PHP and ASP includes help make the code cleaner and make the search engines spider through less amounts of text. (not to mention making updates easier.

One person that may definitely know the answer is Paul Sveda! We should ask him.

This also goes well with the question I asked in the forum above this talking about what makes programming SEO friendly? Id love someone to learn more! :D
admin@techwyse.com
Site Admin
 
Posts: 20
Joined: Thu May 04, 2006 1:27 pm

Postby admin@techwyse.com » Thu Nov 23, 2006 10:05 am

This is the answer I just got from Paul...

Here is the answer. Includes behave as shared code that would typicaly be in the HTML page but instead of having to edit in every page the coder edites the one instance of it on the server and all pages are updated

As far as the browser is concerned it asks for the page at the server and the server sees these include calls. Seeing all these includes it assembles the code in the include into the HTML page before delivering it to the browser. Thus an includ is call an SSI or SERVER SIDE INCLUDE. As far as a spider crawling the same function is performed before the spider see the page and the spider has no clue what is an include. The only thing the spider can see is the repition of code across a number of pages which would be the case even if it was just put in the HTML page without an include. Includes are not a good idea for repition of content but for navigation or interface items its fine.

Now I am always asked why wouldn't the spider be able to see the page with the "include asp code" in it. Easy, for the spider to see that it would need FTP level access to the page and not HTTP level which causes the server to execute the all includes and ASP/PHP functions.
admin@techwyse.com
Site Admin
 
Posts: 20
Joined: Thu May 04, 2006 1:27 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests

cron