You cannot have two index files in the same directory. That confuses WP 🙂
So you’ve left index.php as the WP index and you’ve created your OWN index.html??
If that is the case, you’re telling Apache that it should first look for an index.html and use that if it finds it, if not, it should search for index.php and so on.
If you have BOTH files in the same directory, Apache will always find the one listed first. It will ignore the second.
So a slight correction to moshu’s comment, there really isn’t confusion on WP’s part, just the way Apache is behaving, because you asked it to..:)
Regards
Any correction is welcome 🙂 – since I am not a technical person. Although I know (without understanding the technical details) that WP is using the index file to “build” all kind of internal links (even when the “index.php” is NOT visible in the URI), so if it finds the index.html instead of index.php… a lot of things will be broken. Basically, I was thinking about this when I said “WP will be confused”.
Summa summarum: remove the index.html 🙂
Yes I have the index.html that loads first when you surf the domain name, then it bumps over to the index.php file both in the same directory. So I take there’s not anyway in fixing it, Dont spose Apache would like a default.html instead ?
TT
The file name themselves have no significance to Apache, but rather the order in which they are listed does matter.
The basic point is that you can only have one “index” file per directory. Whether you call it index.htm, default.asp, index.jsp, index.php, localhost.asp, index.html, foobar.me doesn’t matter..which ever exists (and configured in Apache) is found and used.
So if you want a splash screen (very old world BTW) you’d want to put the index.html in the / (public_html) directory and your blog would be in a subfolder, this will work fine.
Regards