...which one will show up when i type www.domain.com? also, if i need to change my index.html to index.php, what is the best way to do it without losing SERPs, PR, etc? 301 redirect? a line in .htaccess?
It depends on the apache config. I think there is a list of extensions to parse as index.xxx and it looks for an extension in the order the extensions are listed. If .html is first, as in my case, it looks for index.html and if it don't find one it then looks for index.php. If both index.html and index.php are there, it uses index.html. I think ya can do this in .htaccess as well, but I'm not an apache expert.
Well it depends on the Default Settings on your Apache which is in the DirectoryIndex You can input DirectoryIndex index.php or DirectoryIndex index.html or DirectoryIndex index.html index.htm index.php filename.php as long as the files exist it will be loaded but you are at the mercy of which file the it will load first.
before i continue, please realise that i suck at anything other than HTML. so i'm afraid i have no clue what you're saying. noppid - i get what you mean though.
Sorry Devin! Noppid had it spot on though, usually it's index.html or .htm that is pulled first unless your Apatche is set up differently. If you're just changing your index.html to index.php this won't make any difference to the serps.
you sure about this? will i lose PR too? or it doesn't matter since it can be recouped, since inbound links point to www. domain. com which, in effect, is index.php?
If the links all point to domain.com and not domain.com/index.html you'll be fine, they'll just point to whatever Apatch defaults to. You'll retain you IBLs and PR will be the same as it was before.
thanks! i'll take your word on it and make the change then! thank god it wasn't some inner pages that ranked high on SEs.
okay this is so strange. i uploaded the php version of the home page, with the code in it. and when i opened in my browser i get the "You have chosen to open this file..." message in firefox. i merely saved the file as php and uploaded it, is there aything else i need to be doing?