PHP Includes and SEO

Discussion in 'Search Engine Optimization' started by codecs, Oct 5, 2009.

  1. #1
    Is it a good practice to use includes code in your php site? Can search engine read those links inside includes?
     
    codecs, Oct 5, 2009 IP
  2. TheCrabb

    TheCrabb Peon

    Messages:
    304
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yup - include files in php or asp are fine (actually a very good idea if you to make changes across multiple pages easily). The pages are compiled on the server before the crawlers get to "read" them so the included content is rendered as a part of the page being spidered - unlike frames, iframes or shared borders which should be avoided.
     
    TheCrabb, Oct 6, 2009 IP
  3. newwebseo

    newwebseo Member

    Messages:
    270
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Yes include code is good for your site & whatever is present in the include file if in html form would be indexable by search engines.
     
    newwebseo, Oct 6, 2009 IP
  4. julibraganza

    julibraganza Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    very usefull info thanks for sharing it with us.
     
    julibraganza, Oct 6, 2009 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Since all the search engines will ever see is the HTML output, using PHP and/or server-side includes is fine.
     
    Dan Schulz, Oct 6, 2009 IP
  6. charlesgan

    charlesgan Well-Known Member

    Messages:
    1,346
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    115
    #6
    should be ok.. and after google crawl it you can try visit the cache site to see either its being crawl
     
    charlesgan, Oct 6, 2009 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It doesn't matter if you do or not because all the search engines see is the HTML output.
     
    Dan Schulz, Oct 6, 2009 IP
  8. codecs

    codecs Peon

    Messages:
    198
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thank you all for your reply. But my file extension is in .php. I'm still on the process of making my on cms. I used includes for fast editing of the page footer and the navigation on the side of my page.
     
    codecs, Oct 8, 2009 IP
  9. willybfriendly

    willybfriendly Peon

    Messages:
    700
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It does not matter what the file extension is. PHP is server side technology. By the time the user agent sees it (whether a browser or a bot) it will be presented as html markup.
     
    willybfriendly, Oct 8, 2009 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #10
    As Willybfriendly said, it doesn't matter if the file extension is .html .php .aspx or .mydoglarry (okay, I made that last one up). All the search engine will see is what you see in the browser when you click "View Source". And that's HTML (along with any CSS or JavaScript embedded in the HTML file).
     
    Dan Schulz, Oct 8, 2009 IP