How to convert an HTML CSS website to PHP

Discussion in 'HTML & Website Design' started by Tanmi Gold, Apr 17, 2010.

  1. #1
    Hello warriors,

    I have an HTML CSS , Dreamweaver designed website and i now wish to convert it to PHP .
    Can some one let me know the easy and simpler process to do it.

    Thanks.
     
    Tanmi Gold, Apr 17, 2010 IP
  2. ceaseer

    ceaseer Peon

    Messages:
    473
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Rename files to .php as well as all links within each page. Add to your .htaccess file
    RedirectMatch permanent ^(.*)\.htm(l?)$ $1.php

    This will redirect any visit to a .htm page to the .php page.
     
    ceaseer, Apr 17, 2010 IP
  3. -Ray-

    -Ray- Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    HTML / CSS does not convert to PHP. HTML / CSS is processed client site as PHP is processed server-side.

    You can include PHP code into you HTML / CSS coded file by renaming it to .php or adding an apache handler to process .html with the php engine.

    use
    <?php

    ?>

    to process all of your html code
     
    -Ray-, Apr 17, 2010 IP
  4. Tanmi Gold

    Tanmi Gold Peon

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks 4 da replies.

    I do know about changing the filenames, but just wanted to know if theres some easy way to do it.
    I actually wanted to change the look of my html website either by using WordPress themes or templates.

    Any further help would be appreciated.

    Thanks.
     
    Tanmi Gold, Apr 17, 2010 IP
  5. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #5
    Well, if you want to use another theme, you can try out the designs in http://www.opendesigns.org/. Those are HTML designs and you just have to change the contents.

    I don't understand why you would want to use wordpress just for themes or template.
    If you really want to use wordpress, you don't need to convert anything. You have to copy the contents of your HTML site into wordpress posts/pages.

    Or if you just want to use a particular wordpress theme, but not wordpress itself, you need to take the source code of the site which uses that theme and edit the source code.

    If you can share more clearly what you are really upto, maybe you will get more helping hands. :)
     
    nwk, Apr 17, 2010 IP
  6. Tanmi Gold

    Tanmi Gold Peon

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I actually did not want to loose my back links and page ranking, i better think of it again.

    Anyways..Thanks everyone 4 the information provided.
     
    Tanmi Gold, Apr 18, 2010 IP
  7. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #7
    Addition of Short Tag within your pages can help you to convert your pages into PHP with alteration of extension also
     
    jezzz, Apr 18, 2010 IP
  8. weaverIT

    weaverIT Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hei, if you just wanted to re-configure your site with wordpress I can help you in that, Ours is a web design & development company in cochin .
    If interested Please mail me in will send you the price details
     
    weaverIT, Apr 18, 2010 IP
  9. casius

    casius Peon

    Messages:
    168
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hello,

    You just need to .php extension of all pages and also change the link in .php and whree you can put the code of php you can easily put the code.
     
    casius, Apr 22, 2010 IP
  10. rockjone

    rockjone Peon

    Messages:
    358
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    neetd to convert html to php contact me in PM
     
    rockjone, Apr 22, 2010 IP