Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    May 2009
    Location
    philippines
    Posts
    50
    Thanks
    6
    Thanked 1 Time in 1 Post

    effect on seo if i change my index file from .html to .php

    i'm not sure if this is the correct forum to start this thread.. my apologies..

    my concern is will there be an effect in my site's ranking and visibility if i change my index file from .html to .php? any tips on how to ensure the smooth transition from .html file to .php?

    thanks..

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    my concern is will there be an effect in my site's ranking and visibility if i change my index file from .html to .php?
    There's no advantage in the SEO point of view.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    May 2009
    Location
    philippines
    Posts
    50
    Thanks
    6
    Thanked 1 Time in 1 Post
    Quote Originally Posted by abduraooft View Post
    There's no advantage in the SEO point of view.
    thank you for the prompt and helpful response.

    my only intention in changing my index file from .html to .php is to make the jump from a static web page to a dynamic one. if i continue with changing to .php, will i need to do something to ensure that there'll be no confusion with indexing of my web page since it'll have a different file extention?

  • #4
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    Google is smart enough to index where the content it, but you should probably set up some redirects from the old extensions to the new. I think it's a 301 that denotes a permanent change.
    Are you a Help Vampire?

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Oh.. I misread your post. In that case, you could set permanent redirects as mentioned by tomws.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    New Coder
    Join Date
    May 2009
    Location
    philippines
    Posts
    50
    Thanks
    6
    Thanked 1 Time in 1 Post
    to tomws and abduraooft, thank you very much for your help..

  • #7
    New to the CF scene
    Join Date
    Mar 2010
    Location
    Estonia
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think it'll affect your SEO or pagerank, but to be sure, use htaccess redirect:

    // 301 Moved Permanently
    Code:
    redirect 301 /index.html /index.php



    also, this will redirect all html files to your php files:
    Code:
    RewriteEngine on 
    RewriteBase / 
    RewriteRule (.*).htm$ /$1.php


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •