Does googlebot reads external .tpl file?

Discussion in 'Site & Server Administration' started by OdoBantik, Mar 3, 2006.

  1. #1
    Hi Guys,

    I'm a new member in this forum and also a newbie in SEO world.
    Got question:
    Does googlebot reads external .tpl file embeded into a page using 'php include'?

    Please anyone help me. I promise to buy you a drink ;)

    Thx in adavance
     
    OdoBantik, Mar 3, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If there are no links to the file then google won't index it.

    It will parse any pages that use the file quite happily as the php include is server-side and invisible to search engines and users.

    I did read somewhere that your files should be called filename.inc.php if they are includes and that will stop them being indexed though.
     
    mad4, Mar 3, 2006 IP
  3. OdoBantik

    OdoBantik Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sounds Great :) Thanks for your help.
    The page I made is consist of 3 parts i.e.
    1. header (full of images) and saved as header.tpl
    2. Content area which then hopefully readable to google
    3. footer (full of images) and saved as footer.tpl

    So the structure would be:

    <html>
    <body>
    <?php include "header.tpl"; ?>
    <table><tr><td> Content Area </td></tr></table>
    <?php include "footer.tpl"; ?>
    </body>
    </html>


    I hope this thing works the way that google won't read the embeded .tpl files and directly go to content instead. Or should just change the file ext to inc.php?
     
    OdoBantik, Mar 4, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The way you are intending will work fine.
     
    mad4, Mar 4, 2006 IP