HTML to PHP

Discussion in 'Search Engine Optimization' started by dondor, Apr 21, 2007.

  1. #1
    Hi all,

    I have a site with about 70 html pages.
    I want to change the site to php so I could add many dynamic features.

    I know if would be easy to just change through htaccess to redirect all html to php extention, but will it not harm my ranking / Pagerank?

    has anyone ever done it?
     
    dondor, Apr 21, 2007 IP
  2. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    My site is all .php but I keep the extension as .html

    You can also add in your .htaccess an option to parse html whihc im sure someone will find for you and post.

    On top of that just use modrewrite to optimise your links.

    For instance
    RewriteRule (.)\.html $1.php
     
    Kalyse, Apr 21, 2007 IP
  3. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #3
    If you're talking about the site that is in your signature, I checked the source and it is html.
    Perhaps you mean it is generated from a PHP CMS, but if so that is not what I need.

    Is there a way I can use php without using CMS or changing the extention of the files to .php?
     
    dondor, Apr 21, 2007 IP
  4. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Believe me the site is PHP.

    These are both the same:
    http://www.invision-gaming.co.uk/Counter-Strike-Source/sv_downloadurl-Guide-36.html
    [url]http://www.invision-gaming.co.uk/index.php?content=36[/url]


    You use modrewrite for rewriting any URLs
     
    Kalyse, Apr 21, 2007 IP
  5. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    how do you add pages? not through any cms?
     
    dondor, Apr 21, 2007 IP
  6. boyponga

    boyponga Banned

    Messages:
    1,013
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Try implementing PHP in your HTML pages and edit in your .htaccess
     
    boyponga, Apr 21, 2007 IP
  7. agtile

    agtile Active Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Yes I have done it on several sites, and no it wouldn't it harm your PR

    .htaccess
    AddType application/x-httpd-php .php .htm .html

    your pages keep their html extension
    but you get to use them as if they were php, adding php scripts ect.
     
    agtile, Apr 21, 2007 IP
  8. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Thanks,
    That exactly did not work, but I've managed to find this:
    Addhandler application/x-httpd-php .html .php

    And now I can get my html pages to work with php.
    Now I just need to find the php scripts I need and I'm on my way.

    Thank you very much. :)
     
    dondor, Apr 21, 2007 IP
  9. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #9
    Or you could make all the pages .php and redirect 301 all .html to them one by one.
     
    login, Apr 21, 2007 IP
  10. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #10
    no dudes

    Just use a script that uses mod write

    For example if your pages are now www.site.com/blue-bunnys

    You can do that with a php script and not lose one single page,

    In fact you can keep the look of the site the same as well,

    and have all the dynamic pages you want

    Google wont even know you converted
     
    sundaybrew, Apr 21, 2007 IP
  11. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #11
    yeah, but my ranking are already good and I do not want to risk it.

    That I believe is a good solution to me, I just need to find a php script that will present me change every 24 hours a link to a different inner page.
     
    dondor, Apr 21, 2007 IP
  12. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #12

    Dude look

    see this

    http://www.freestuffdirect.com/free-baby-stuff

    Thats a php site, but to google it looks like html :)
     
    sundaybrew, Apr 21, 2007 IP
  13. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Yes I add the pages through a CMS.
     
    Kalyse, Apr 21, 2007 IP