• Ok people here is a question.

    I run a linux box and in my httpd config I have some thing like this in there so my splash screen loads first.

    DirectoryIndex index.html index.php

    Now if I place the index.html in the directory and surf my site, I click on of my links to one of my pages I created in WP and it brings me back to the Splash screen ?

    any idea to why its doing this and why its not showing me the correct page.

    TT

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 ??

    Thread Starter tommytomato

    (@tommytomato)

    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

    Thread Starter tommytomato

    (@tommytomato)

    Well that didn’t work

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Splash Screen’ is closed to new replies.