What will happen if I change my pages from .html to .php

Discussion in 'Search Engine Optimization' started by fireboat, Jul 17, 2008.

  1. #1
    I have a site full of PR4 and PR5 pages. It ranks well for lots of great keywords.

    I want to make it a subscription only site. I'll have to change the url suffixes from .html to .php. Any idea how will this affect my rankings?


    Thanks in advance for any replies.
     
    fireboat, Jul 17, 2008 IP
  2. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #2
    You will lose all rankings on your inner pages. You will have to request all the url's be removed on your google dashboard or you will get errors for unreachable url's.
    I had this problem before.
     
    indyonline, Jul 17, 2008 IP
  3. Smaaz

    Smaaz Notable Member

    Messages:
    2,425
    Likes Received:
    160
    Best Answers:
    0
    Trophy Points:
    250
    #3
    You should put a 301 redirect from your html to your php pages. You can also use the html handle for php pages.
     
    Smaaz, Jul 17, 2008 IP
  4. fireboat

    fireboat Active Member

    Messages:
    686
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #4
    D'oh! That's what I was afraid of.
     
    fireboat, Jul 24, 2008 IP
  5. fireboat

    fireboat Active Member

    Messages:
    686
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Ok... hopefully they'll keep their rankings then?
     
    fireboat, Jul 24, 2008 IP
  6. juliensimon

    juliensimon Peon

    Messages:
    186
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    they'll catch up after a while but will drop ranking at first.
     
    juliensimon, Jul 24, 2008 IP
  7. Alex-Z

    Alex-Z Peon

    Messages:
    337
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can use MOD REWRITE to map everything .html to .php so google will see .html (so nothing will change) but your webserver will see .php :)
     
    Alex-Z, Jul 24, 2008 IP
  8. freelistfool

    freelistfool Peon

    Messages:
    1,801
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you do the 301 redirect from every .html page to every .php page (with a MOD REWRITE) you'll be fine. I've moved from .html to .jsp with no problems.
     
    freelistfool, Jul 24, 2008 IP
  9. DomainMagia

    DomainMagia Peon

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Removal request is a big no-no. You need just to rewrite them via .htaccess.
     
    DomainMagia, Jul 24, 2008 IP
  10. Alex-Z

    Alex-Z Peon

    Messages:
    337
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Yes, that's exactly what I suggested as well
     
    Alex-Z, Jul 24, 2008 IP
  11. artisimo

    artisimo Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    convert your html pages to php: open a page with notepad and save it as xxxxxx.php and you must change a links between a pages to xxxx.php exemple href="page2.html" become href="page2.php"
    do it and tell me waht happend
     
    artisimo, Jul 24, 2008 IP
  12. jennypretty

    jennypretty Active Member

    Messages:
    584
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #12
    Mod-rewrite with .htaccess will keep your page rank.
    This is the best method.
     
    jennypretty, Jul 24, 2008 IP
  13. klaniak

    klaniak Banned

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    If you don't want to use url rewrite then:

    You should config your apache server to see .html pages as .php, so you can put php code in html
    but if you do this then all you html pages will be parsed by php. Afterwards you can use .htm if you don't want your html pages to be parsed by php

    You will find this in httpd.conf:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3

    and you can add .html
    AddType application/x-httpd-php .html

    Good luck !
     
    klaniak, Jul 24, 2008 IP
  14. greatme

    greatme Active Member

    Messages:
    789
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    80
    #14
    mod rewrite is the best option for you otherwise there is probability of loosing your ranking.
     
    greatme, Jul 24, 2008 IP
  15. invisible

    invisible Banned

    Messages:
    2,031
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Yep surely you will loose your ranking, its better to do a 301 redirect ;)
     
    invisible, Jul 24, 2008 IP
  16. supersan

    supersan Well-Known Member

    Messages:
    245
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #16
    wow thanks klaniak!

    i just tried that it's awesome.. all my .html pages can now run <?php ?> code.. pretty cool trick!

    i'm doing it for all my sites from now.. but just want to double confirm if technically there isn't any downside to it? (like slowing apache, php compile time, etc).. thanks
     
    supersan, Jul 24, 2008 IP