PHP's Include(files.html) Question?

Discussion in 'Search Engine Optimization' started by carolina-advertising, Dec 5, 2007.

  1. #1
    Hey guys,
    Please correct me if I'm wrong...

    If I'm using php include statement to include my...

    include(header.html)
    include(open-layout)
    ...
    pulling my content here from mysql to html
    ...
    include(footer.html)

    se bots does not have trouble reading the html with includes. Right?
    Thanks,
    RD
     
    carolina-advertising, Dec 5, 2007 IP
  2. TrafficLicious

    TrafficLicious Active Member

    Messages:
    371
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    80
    #2
    hi carolina-advertising,

    AFAIK, includes will screw up most (if not all) SE crawlers. Be it php, shtml, etc includes.

    Cheers!
     
    TrafficLicious, Dec 5, 2007 IP
  3. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #3
    what do you want to do with the
    include
    a template
     
    buldozerceto, Dec 5, 2007 IP
  4. carolina-advertising

    carolina-advertising Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm just including the html so I can easily manage the site

    include html header.html
    include html layout open.html
    ...
    content from database
    ...
    include html layout close.html
    include footer.html

    you mean to tell me crawlers can't read a php included html file even like your html menu system?
    thanks,
    RD
     
    carolina-advertising, Dec 5, 2007 IP
  5. carolina-advertising

    carolina-advertising Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    so you mean to tell me if i want to be seo friendly,
    i'll have to store my html in a $var within a config and then in my pages....

    <?php print $header; ?>

    You mean I need to change all includes to print?

    thanks,
    RD

    EDIT, i'm searching for one of the crawler scripts to crawl my included pages and see if it will
    let me see what a crawler sees
     
    carolina-advertising, Dec 5, 2007 IP
  6. JagNet

    JagNet Peon

    Messages:
    18
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Server-side includes won't affect search engines. All the SE sees is the final html output -- how the html was generated is neither here nor there.

    Open the complete web page in your browser and view the source code - that's what the SE sees.
     
    JagNet, Dec 6, 2007 IP
  7. carolina-advertising

    carolina-advertising Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That is what I thought. The crawlers reads the html with includes just as if it is a static html file...

    Thanks,
    ~RD
     
    carolina-advertising, Dec 8, 2007 IP
  8. boogalooDude

    boogalooDude Peon

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What makes you think that? As Jagnet said, the bot will see the html content generated by the include just as a human user would, and the secret to getting indexed is to always present the same content to the bot as a person would see.
     
    boogalooDude, Dec 8, 2007 IP