Forum Moderators: coopster

Message Too Old, No Replies

Discussing dynamism and SEO

How far wiil you go in dynamism?

         

henry0

12:02 pm on Apr 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Discussing dynamism and SEO
I currently use the two first "genre" of dynamism
I am wondering if there is any real SEO value in those two first examples
Used mostly to showcase sub-dir products

A)
Data exists only on MySQL
All pages are totally built on the fly
Example:

$num=$db->num_rows($result);

$i=0;
while ($i <$num)
{
$img_caption=mysql_result($result,$i,"img_caption");
$dir_name=mysql_result($result,$i,"dir_name");
$img_filename=mysql_result($result,$i,"img_filename");
$price=mysql_result($result,$i,"price");
echo"<tr><td valign='top'>&nbsp;";
echo"<h1>";$prod_name=mysql_result($result,$i,"prod_name"); echo"$prod_name";
echo"&nbsp;<a href=' "; $link_to_cart=mysql_result($result,$i,"link_to_cart");
etc......

B) I call it semi-dynamic
Is a tpl system OOP oriented
A tpl is copied and written with some data
The result is a page existing in a directory
Looking like:

require_once('../../../../db_class/details.php');

require_once('../../../db_class/db_class.inc.php');

require_once ("../../../classes/tpl_class.php"); // Include the class
$page = new tpl_class ("../../../templates/main_template_prod.inc.php"); // Create an instance.

$content_dir_name .= '';
include "../../../includes/dir_name.inc.php";
$page->SetParameter("DIR_NAME",$content_dir_name);

$content_prod_name .= '';
include "../../../includes/prod_name.inc.php";
$page->SetParameter("PROD_NAME",$content_prod_name);
and so going on....

And last never used yet!
C) Let’s call it almost-static!
(I won’t use it, due to fopen(), if multiple users (non site owner) may login and edit their section)
A tpl is copied and resides in a directory,
with full blown CSS, HTML.
Not any data are pulled from MySQL
Site manager may edit with fopen()…
A page may look like:
<?php
<html>
CSS formatting…
Header
Left col
Main_content
Footer

Where main content could be
aaa cccc ddd <tag1> sss ddd ee <tag2>

to edit it:
Include”GrabEditableSection.inc.php”;
The included() utilizes strops and strlen to find whatever lies in between pre defined tags
$str=”aaa cccc ddd <tag1> sss ddd ee <tag2>”;
$seek=GrabEditableSection($str, $tag1,$tag2);
Then edit $seek

which one would please a "good" bot?

vincevincevince

12:13 pm on Apr 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Provided that they are correctly implemented, there should be no difference at all to a bot. To test this, compare your results against the 'gold standard' of a plain .html page served from your browser - and compare the result in terms of:
  • Server headers (should be indentical)
  • HTML + CSS code (should be identical)
  • Speed of loading (should be identical)
  • henry0

    12:37 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Those are good benchmark points,

    There is also a question that I did not previously ask:

    I am under the impression that BOTs would mostly not be able to follow a link to a dynamic page in a case where a link is dynamically generated and points to one of the two first above examples

    coopster

    1:02 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Administrator 10+ Year Member



    You may have to offer more details, henry0, because that is exactly what bots/spiders are designed to do, follow the links ;)

    Are you saying the structure of the link is questionable?

    johnnie

    1:05 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    If you correctly separate content from presentation (look up the model-view-control pattern), then you would likely want to go full-dynamic. This because it will allow you to easily extend your system to another view (eg XML, RSS etc).

    vincevincevince

    1:09 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    The links you provide should be no different. Don't write things like index.php?getcontent=1324, instead write them as about_this_topic.html - just as you would with a plain text file.

    mod_rewrite will help with this.

    henry0

    1:24 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Yes my links are written to the DB and are all looking like a "humanly readable link"
    ex: <a href='../$dir/$dir2/$product_name etc...'>
    or <a href='http://www.site.com/$dir/$dir2/$product_name etc...'>

    and appear fully clean (in the browser)
    ex: <a href='http://www.site.com/category/packages/membership.php'>

    I do not use any ?GET

    vincevincevince

    1:25 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    If the URLs are all the same, and the server headers are all the same (see my first post in this thread) then the search engine spider cannot differentiate between them if it tried!

    penders

    1:27 pm on Apr 2, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    What the bot sees is exactly the same as what appears in your browser - the static HTML page - regardless of how the page is generated on the server. (Unless you are checking request headers and serving content accordingly, then it might be a different static page?) The bot doesn't actually trawl the directory structure of your site.

    How does a bot know a page is 'dynamic'? May be by it's file extension (eg. .php) - hardly a fair test? May be by the query string: "?id=123"? May be when it revisits the page it's always different? Hhhhmmm, tricky one!

    I am under the impression that BOTs would mostly not be able to follow a link to a dynamic page in a case where a link is dynamically generated...

    May be if the link was dymanically generated by client-side JavaScript...?