PHP Help Adding Dynamic Blog Preview to Static Homepage

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

  1. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    Guys! Please help!

    My homepage is static, while my blog is wordpress, obviously dynamic. I can't add my blog to show on the homepage because it's a .html site (except the wordpress installation) and i need to place php on the .html to allow my blog to show up.

    I'm using godaddy and no matter what code i enter into the .htaccess file to allow php to function on the homepage, it's just not working.

    Is there anything else i can do to add my blog to my homepage so that my homepage becomes dynamic and has fresh content?

    I need this because google likes a page with fresh content over a static page any day and no matter what i do, nothing works.

    You can visit my site by visiting my homepage through clicking my username.

    Any and all help greatly appreciated! Thanks!
     
  2. phpbuilt

    phpbuilt Jr. VIP Jr. VIP

    Joined:
    May 16, 2011
    Messages:
    1,656
    Likes Received:
    5,289
    Occupation:
    $ from websites I own.
    Location:
    putting monkeys in paypal
    What specifically were you doing to the .htaccess file? This?

    Code:
    AddType application/x-httpd-php .html .htm
     
  3. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    Just tried that,

    tried this


    Code:
    AddType application/x-httpd-php .html .htm .php
    it takes 3 times as long to load my page, and then when it does, im prompted to download a file called download - pretty sure it's a copy of the webpage.
     
  4. StOn3D

    StOn3D Newbie

    Joined:
    Jun 6, 2011
    Messages:
    21
    Likes Received:
    14
    Then change your homepage from .html to .php and update your internal links.
     
    • Thanks Thanks x 1
  5. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    thats too crazy of a change man.. i wouldve done it a long time ago, but its really not a good move.
     
  6. sukataetumba

    sukataetumba Senior Member

    Joined:
    May 25, 2010
    Messages:
    1,126
    Likes Received:
    218
    try adding this code to htaccess

    Code:
    RewriteRule ^blog/?$ blog/$1 [L]       -----> if your wp blog under "blog" folder
    RewriteRule ^blog/wp-admin/?$ blog/wp-admin/$1 [L]  ------> your wp login
     
    • Thanks Thanks x 1
  7. ramtripper

    ramtripper BANNED BANNED

    Joined:
    Jul 31, 2010
    Messages:
    427
    Likes Received:
    273
    ill try it now, but what code do i stick into my index.html to have see my blog feed?

    pm'd btw.