Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.


Discussion in 'Search Engine Optimization' started by ovi, Sep 16, 2005.

  1. ovi

    ovi Guest

    Hello everyone,

    Just a curiosity of mine, what do you think is best for SEO? HTML or php pages?
    In my oppinion is no difference, anyway I am curious to hear your oppinions.

  2. stealthhosts

    stealthhosts New Member Webmaster

    they are both the same ovi.

    In terms of what the search engines see there is no difference, PHP is simply the stuff that tells the server what to display in the page. You can use php to show pure javascript if you like, or xhtml it makes no difference.

    You would have

    PHP- do some stuff to get my content
    end php
    php - show content
    end head
    end body
    end html
    php - stop showing content
  3. Paul_KY

    Paul_KY New Member Webmaster

    PHP should be embedded in HTML. I don't think there's an SEO issue, but it's better code.
  4. Sephia

    Sephia Guest

    While this is not exactly a coding issue it's more of the way you link your pages.

    for example doing this:


    would be better than:


    Again, not exactly related to the code it self since php just generates dynamic content.
  5. WhatiFind

    WhatiFind Guest

    Ovi, I run a website for over 6 years completely programmed in html, the rankings are very good. Haven't had that much rankings with a dynamic php pages yet.
  6. temi

    temi Facilitator Webmaster

    I think php is treated almost like html this days as long as its clean php for example "page2.php" and not "page2.php?=3334dfafdaf3534 "
  7. Duke

    Duke Guest

    Google states that they have troubles indexing url's with special characters which is the reason some php content pages don't rank high (if at all). If you can keep the code clean as temi pointed out then it isn't usually a problem, again, according to google.
  8. stealthhosts

    stealthhosts New Member Webmaster

    so that has nothing to do with php code per se duke.

    That is referring to variable based urls (this can be done in javascript, html, php, asp, .net etc)

    There are easy ways around this but it seems to be the easy solution.

    My understanding is that what they are talking about is : index.php?myname=bob&myage=60&location=alabama

    In that instance, google would only ever index the index.php file (most of the time). What people 'should' do is use something like mod_rewrite to re-write the urls before being passed to the client (and therefore the spider) to become : site/index/mynameisbob/myageis60/mylocationisalabama/

    It's a convoluted example but you get my point.

Featured Resources (View All)

Share This Page