SEO with question about effect of PHP

Discussion in 'Search Engine Optimization' started by stymie, May 23, 2008.

  1. #1
    While I have been optimizing sites for a few years now, I am new to php, and have a client whose site seems to call most of its' information from php files (including the body content). My question is this: Does Google care that these essential SEO items are stored off of the home page and in php files, or does it just follow the include references to the php files and index the SEO info that is there? When you look at the source for the home page, everything seems to be there, but when I went to optimize it, there was hardly any code there except for includes for the meta tags, body content, etc. Any help is greatly appreciated...
     
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    stymie, May 23, 2008 IP
  2. snowbird

    snowbird Notable Member

    Messages:
    3,036
    Likes Received:
    395
    Best Answers:
    0
    Trophy Points:
    290
    #2
    You need to modify the php files that are called on for each section of the page (header, sidebar, footer, etc.).

    There's no difference how php or html files are indexed.
     
    snowbird, May 23, 2008 Set Best Answer IP
  3. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #3
    there are many ways to optimize a dynamic site

    Few hints
    1. URL Must be .html not .php google donot like .php
    2. URL's should not be very long
    3. Each page should have a <h1> tag
    4. Each page shd have seperate meta tags with info
    5. It does not matter if info is coming from db or php as php is server side it send html to client so search engines donot see php code.
    6. With PHP optimization is more easy but lil tricky

    Regards

    Alex
     
    kmap, May 23, 2008 Set Best Answer IP
  4. stymie

    stymie Guest

    Best Answers:
    0
    #4
    Thanks for the quick replies. Just so I am clear - when Google goes to index the site, it does not have a problem with the meta info and the body content being stored off-page and in the php files?
     
    stymie, May 23, 2008 Set Best Answer IP
  5. Ricky Deez

    Ricky Deez Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    .html .php .asp .htm - the extension of the page does not matter as long as the content is spiderable and your internal linking structure is setup properly.
     
    Ricky Deez, May 23, 2008 Set Best Answer IP
  6. snowbird

    snowbird Notable Member

    Messages:
    3,036
    Likes Received:
    395
    Best Answers:
    0
    Trophy Points:
    290
    #6
    No problems, because the PHP files are called on and are embedded into the main PHP file.

    If you have a site with frames, that's a different story. But embedded PHP files in a regular page are no issues at all.

    Good luck
     
    snowbird, May 23, 2008 Set Best Answer IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Alex, Google does not care one way or another if a page is saved with a .php or any other non-HTML extension as long as the file extension is NOT a .exe
     
    Dan Schulz, May 23, 2008 Set Best Answer IP
  8. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #8
    No PHP urls are mostly non search engine Friendly ,I am talking about complex url with Get attributes

    Regards

    Alex
     
    kmap, May 23, 2008 Set Best Answer IP
  9. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #9
    PHP files are included into the page and the googlebot only reads the page once its put together. as far as that goes. Googlebot doesnt go around trying to fetch the pages .. it just makes a call to the main landing page and sees it similar (perse) to how a person sees it when its put together. Unless youre talking about php scripts that dont get actived until something happens after the page has been loaded.
     
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #10
    That was true back in 2001 and 2002, but it's not true now. Google can handle them fine as long as you limit the number of parameters used and avoid using things like session IDs in your query strings.
     
    Dan Schulz, May 23, 2008 Set Best Answer IP
  11. medicalcompanies

    medicalcompanies Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    google can handle php very easily nowadays, dp is a good example.

    if you only focus on 1 or 2 keywords at first, i thinks even dynamic php urls are also ok for seo.
    if you need to focus on many keyword, .html .php still the same, but do not use dynamic php urls.