1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

.php files or .html files are best for SEO?

Discussion in 'Search Engine Optimization' started by MyFishTankNet, Jul 24, 2006.

  1. #1
    Hello -

    just about to create a new site and was wondering what the general consensus was on if i should create pages with .html or .php.

    i like .php b/c you can use include functions so if there was an edit to a section, you would just need to edit one file.

    .html based on my own general knowledge works best for SEO purposes. i can also do the include stuff via javascript.

    Thanks in advanced,

    Johnny
     
    MyFishTankNet, Jul 24, 2006 IP
  2. vistadivine.com@gmail.com

    vistadivine.com@gmail.com Banned

    Messages:
    609
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Most of the search engines are now supporting both of them but then also I will advice you that you use only HTML if not very necessary.

    Akash Kumar
     
  3. affihq

    affihq Peon

    Messages:
    329
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    For SEO pruposes HTML is always the better way to go because there is a lot more content to scripot ratio, which is a plus.
    I would say only use php if you absolutely must.
    Like if you have a script that is extremely meaningful to the operation of your site.
     
    affihq, Jul 24, 2006 IP
  4. vistadivine.com@gmail.com

    vistadivine.com@gmail.com Banned

    Messages:
    609
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ya I agree PHP should be ony used as scripts not as web pages I myself use only HTML pages in my website.

    Akash Kumar
     
  5. ibnuasad

    ibnuasad Notable Member

    Messages:
    1,045
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    275
    #5
    Both PHP and HTML files are best for seo IF you code them properly. HTML is easier but its hard to maintain.

    EDIT: Have you ever seen a CMS fully coded by HTML? I guess not :D
     
    ibnuasad, Jul 25, 2006 IP
  6. zokiii

    zokiii Peon

    Messages:
    656
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    google is not a rasist :D

    Both html and php are fine, the same.
     
    zokiii, Jul 25, 2006 IP
  7. ibnuasad

    ibnuasad Notable Member

    Messages:
    1,045
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    275
    #7
    Exactly my point!
     
    ibnuasad, Jul 25, 2006 IP
  8. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #8
    both php and html are not born equal...

    1. html is best for seo but difficult to maintain
    2. php is also good for seo if used properly - if the php urls contain lots of weird parameters, seo gets difficult (e.g. phpsessionids). however, php is programmable - so it's easy to maintain and code

    so - which one to use? the answer is "it depends"... on what? on the type of site that you have...
     
    daboss, Jul 25, 2006 IP
  9. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #9
    I think both are fine. And if someone loves HTML more then you can use .htaccess to get that kind of effect in the .php url's
     
    Nick_Mayhem, Jul 25, 2006 IP
  10. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #10
    .php is fine, the "trouble" seems to be when there are characters like = & ? in the url.
     
    eXe, Jul 25, 2006 IP
  11. maldives

    maldives Prominent Member

    Messages:
    7,187
    Likes Received:
    902
    Best Answers:
    0
    Trophy Points:
    310
    #11
    I have a decent ranking for my .php site. I guess both are very good if optimized well.
     
    maldives, Jul 25, 2006 IP
  12. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #12
    You can surely use .htaccess for it. To rewrite the URL's
     
    Nick_Mayhem, Jul 25, 2006 IP
  13. [*-AnOnYmOuS-*]

    [*-AnOnYmOuS-*] Active Member

    Messages:
    253
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #13
    [*-AnOnYmOuS-*], Jul 25, 2006 IP
  14. pcdoc

    pcdoc Active Member

    Messages:
    690
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    70
    #14
    makes no difference
     
    pcdoc, Jul 25, 2006 IP
  15. vistadivine.com@gmail.com

    vistadivine.com@gmail.com Banned

    Messages:
    609
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Ya but most people use HTML format for their site thats why I recommend you to use it.

    Akash Kumar
     
  16. chachacallis

    chachacallis Well-Known Member

    Messages:
    1,086
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    128
    #16
    html is better is you have no idea how to use php
     
    chachacallis, Jul 25, 2006 IP
  17. vistadivine.com@gmail.com

    vistadivine.com@gmail.com Banned

    Messages:
    609
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #17
    But till now I have not seen a webpage ranking high having PHP homepage, there may be some sites but I have not seen one yet.

    Akash Kumar
     
  18. onelife

    onelife Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    If the php is written correctly all you and the crawler should see is the outputed html as php is a server side language. Most of my sites are php based and I've not had any problems, infact the opposite.

    Re-writing the urls is also a must, which be easily done.

    Cheers,

    Dave
     
    onelife, Jul 25, 2006 IP
  19. angel_face

    angel_face Banned

    Messages:
    376
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Theres No problem in SE if your site is PHP Based or an HTML.
    or if you realy want in .html based Try to Redirect in your .htaccess:)
     
    angel_face, Jul 25, 2006 IP
  20. MyFishTankNet

    MyFishTankNet Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    thanks for the input.

    it was just deciding if it was

    filename.html
    or
    filename.php

    there wouldn't be any variables at the end such as ?=etc etc

    i initially went with the .html and used javascript to include my navigation but when i viewed source of the page, it didn't display the content of the javascript include so that wouldn't be useful for SEO purposes. maybe i'll just stick with .php then.
     
    MyFishTankNet, Jul 25, 2006 IP