1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What Happens If I Change My Site From HTML to PHP?

Discussion in 'White Hat SEO' started by ramtripper, Sep 28, 2011.

  1. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    So, i want to do a big change to my site...

    it's in html fully except the blog (which is wordpress).

    It's also not dynamic, as a result, and changing one little thing in the menu (header) or footer means i have to go through every page and change it manually.

    Although i know that the homepage will not be affected since its still just .com, all of the other pages which are in google's and bing's databases as .html will not exist, or at least not exist to the clients (if i keep the pages).

    i want to change the whole thing to php since i can use a universal header and footer and make my life a million times easier.

    what should i do? how will this affect my rankings for inner pages and the PR for those pages? can i do a redirect from the html pages to the php pages?

    i would love some advice with this... thanks!
     
  2. wokaka

    wokaka Senior Member

    Joined:
    Apr 1, 2010
    Messages:
    866
    Likes Received:
    230
    Last edited: Sep 28, 2011
  3. partymarty4870

    partymarty4870 Elite Member

    Joined:
    Jul 7, 2010
    Messages:
    2,034
    Likes Received:
    1,690
    Location:
    I come from a land downunder
    I'm on the m obile atn the moment - so can't link to the post but do a search under my name. I had a post a few months ago about changing a 500 page site from html to .asp - total site redesign. It should answer a few questions
     
  4. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    yea ive spent like 10 hours trying to do that over the last few days and nothing... all the different types of code of tried didn't help me.

    i've even started a thread here a while ago, and still nothing...

    http://www.blackhatworld.com/blackhat-seo/white-hat-seo/355588-php-help-adding-dynamic-blog-preview-static-homepage.html
     
  5. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    you're talking about:

    http://www.blackhatworld.com/blackhat-seo/black-hat-seo/306640-redesigned-my-whole-site-500-pages-rankings-not-affected.html

    im guessing

    in reality im not afraid of my homepage dropping, since the url doesn't change, but i am afraid of losing all links i've built for my inner pages...since PR is based on links for overall site, i might lose PR, which would really suck -.-
     
  6. PhillyLuke

    PhillyLuke Junior Member

    Joined:
    May 18, 2011
    Messages:
    101
    Likes Received:
    37
    Occupation:
    Fulltime SEO/IM
    Location:
    Philadelphia, PA
    I recently overhauled my personal homepage to PHP after getting sick of adjusting headers in multiple HTML pages.

    I just went the "rename all the HTML files to PHP files" route and then went back and added PHP calls to bring in the header, footer, and sidebar files.

    As far as preserving incoming links to your HTML pages - I would just 301 redirect them all to the PHP pages.
     
  7. geass

    geass Registered Member

    Joined:
    May 17, 2009
    Messages:
    94
    Likes Received:
    5
    I would not switch to php but that is only me..
    In my experience google still loves html pages..
     
  8. flibbertigibbet

    flibbertigibbet Regular Member

    Joined:
    Apr 11, 2010
    Messages:
    388
    Likes Received:
    188
    OP I thought about doing this too, but DON'T. Redirects will work but it will take THAT much longer for the new pages to be indexed, and you could suffer the consequences until they're indexed again. Besides, HTML files load faster than PHP files, which means that your site speed is faster....which means that you get better rankings. I've tested this, and know it's not just a bunch of hogwash. Instead of converting all of your pages to PHP, try using this program: http://www.divlocsoft.com/ . I bought it after finding out that you can only edit 10 or so files at a time with the trial version, but the $40 something that you have to pay for the full version is SO worth it! You can change any line of code across 1000's of pages in a matter of minutes. Most of the time it's less than 30 seconds. It's awesome. Hope this will help you as it's most certainly helped me save a lot of time (it's a pain in the ass having to change ONE thing across a crap ton of pages).
     
    • Thanks Thanks x 1
  9. redsecond

    redsecond Registered Member

    Joined:
    Nov 27, 2008
    Messages:
    68
    Likes Received:
    10
    This is just my opinion, but I think that it's not the switch (or the content) that matters. Your content should be relatively the same in Google's eyes (although the coding changed). But as the person above said, if you have extensive backlink campaign to a certain html page before, you will lose it. Unless you redirect it all to the php counterpart. With a wordpress plugin this should be easy.
     
  10. wokaka

    wokaka Senior Member

    Joined:
    Apr 1, 2010
    Messages:
    866
    Likes Received:
    230
    you have to ask your web host. I have 2 html websites in different web hosts and when I tried to simply copy paste the code into .htaccess of my another site, it didnt work either until the web host corrected it for me. it had something to do with the server php version. You should ask your web host what code would work for your .htaccess
     
  11. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    how about if i only change my index.html to index.php and thats all. im thinking it should be fine since i care about google's indexing of the root url, which doesn't include /index.html

    and all my links that point home, point at root (without the .index.html).

    i know this won't solve my problem of changing all headers and footers in one shot, but it will solve my problem of making php work on my homepage and making it dynamic by adding the blog feed to it.

    any thoughts on this? good idea, bad idea? need to know b4 i make the change!!!

    thanks again guys for the input.
     
  12. flibbertigibbet

    flibbertigibbet Regular Member

    Joined:
    Apr 11, 2010
    Messages:
    388
    Likes Received:
    188
    You can DEFINITELY do this if you want to (changing the index.html to index.php) because they're still listed the same in the search engines as far as the url is concerned. It doesn't matter if the index is .php, .asp, .shtml, html, or whatever, because the homepage always points to the root folder. You DO want to make sure that IF you do this though, that the new index.php file contains the EXACT same code as the original .html file. Meaning, you need to make sure that the H1, Description, Title, and meta tags are the same as what was in the .html index page. That way you won't lose your rank for not being optimized in the same way as the original .html file. Make sense?

    Also, just a note.... as mentioned before, php loads slower than html files. If you have a large database behind your index.php file, this may cause your site to be slower because databases hog more server resources. But what you do with this info is up to you. :)

    Good luck.
     
  13. davids355

    davids355 Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 25, 2011
    Messages:
    8,795
    Likes Received:
    6,340
    Home Page:
    First, unless it's not supported by your host (unlikely) you should be able to allow HTML pages to read php - that would solve your problem.

    I don't mind taking a look (free) if you are interested.

    Failing that, you can change your whole site (I have done it before and it's been good outcome) but you MUST redirect all old pages.

    If you have only few you can list out the redirects manually in htaccess.
    If you have lots of pages (100+) then you need to look at regex which can use a formula to change the same thing (ie HTML to php extension) in any amount of urls.

    If you want more help just pm, I am happy to help out if I can.