Does changning file types from .html to .php affect SEO rankings of the website?

Discussion in 'Search Engine Optimization' started by zopharmarcus, Oct 22, 2009.

  1. #1
    I have 3 websites that are more than 5 years old now. They rank well on major search engines incl. Google Yahoo and MSN.

    I now plan to shift all the pages from .html to .php

    Is it advisable to do so? will it harm my current rankings? and also my link campaign?

    Please help.
     
    zopharmarcus, Oct 22, 2009 IP
  2. Feathers

    Feathers Peon

    Messages:
    209
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The real question is "why" are you changing your web file extension? You don't have to, a quick edit too your .htaccess file can allow you to run php directly from any *.html file without changing the extension

    
    AddType application/x-httpd-php .html
    
    Code (markup):
    Just add that to your .htaccess file.
     
    Feathers, Oct 22, 2009 IP
  3. webdev007

    webdev007 Active Member

    Messages:
    1,037
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    88
    #3
    If your urls consists of the extension like ../page.html instead of .../page etc. then that will hurt your ranking if you change the extension.
     
    webdev007, Oct 22, 2009 IP
  4. zopharmarcus

    zopharmarcus Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    All the pages of my websites URLs are of type 'page.html'. These are my new pages on which I have set 301 redirect from my old pages, so its something like:
    oldpage.html - 301 redirected to - newpage.html

    And now I want to convert the newpage.html to newpage.php

    Will this hurt the rankings and the link structure of my websites, even using 301 redirects?
     
    zopharmarcus, Oct 22, 2009 IP
  5. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm with current pages I think 301 directs pass on all of the juice and so on, but hopefully someone can clarify this for sure.
    If there is any doubt i'd go for feathers option on parsing php with a .html extension.
     
    wd_2k6, Oct 22, 2009 IP
  6. sevnrock

    sevnrock Peon

    Messages:
    241
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    newpage.html to newpage.php will NOT hurt your rankings.

    But you will lose link juice for oldpage.html -> newpage.html -> newpage.php. SEs don't like it when they have to hop around so much.
     
    sevnrock, Oct 22, 2009 IP
  7. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #7
    As long as you redirect ALL old .html files to their equivalent .php files, you will be fine... eventually. You WILL, however, likely take a hit during the days or weeks it takes the SEs to recrawl all of your inbound links, discover the 301, and transfer credit for each link to the old URL (one-by-one as they are each recrawled) over to the new URL.

    I redirected 4000+ URLs on a PR7 site from .asp/.aspx file names to extensionless file names last December as part of a site redesign. 3 weeks later our rankings were better than ever. There is a section on one of my blog posts on site redesign and SEO that explains what you can expect when you implement the redirects and why.
     
    Canonical, Oct 22, 2009 IP
  8. Feathers

    Feathers Peon

    Messages:
    209
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'm still confused why you don't just use the .htaccess example I gave above...
     
    Feathers, Oct 22, 2009 IP
  9. zopharmarcus

    zopharmarcus Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    hey feathers, what you suggested seems to be less work. but the real question is how will it affect my SEO rankings and positions? and my link campaign?

    also, does the .htaccess you, mentioned not, required 301 further on?

    I am just worried about my optimization campaign with this redirections and converting file types coming in-process
     
    zopharmarcus, Oct 22, 2009 IP