PDA

View Full Version : A weird problem.



Ordlad
09-17-2007, 10:29 PM
Recently I encountered a problem that my website's homepage becomes a blank page. However, if I add the phrase "/index.php" at the end of the address, I'm able to log into my website. What's the problem with it? I remember the phrase "index.php" is supposed tp be automatically added everytime I type my website's address. But why currently I have to manually add "index.php" in order to see the content of my website? Please help me with this problem, thanks.

AfroJoJo
09-17-2007, 11:15 PM
Make sure you don't have any other index files with different extensions or a default file. What is the URL to your site?

Ordlad
09-18-2007, 01:14 AM
the URL is http://www.pccwproforum.com.
Now I have to manually type http://www.pccwproforum.com/index.php to log into my website.

mirx
09-18-2007, 05:27 AM
In the .htaccess file for that directory just put the line:
DirectoryIndex index.php

You can also add multiple types for order of preference:
DirectoryIndex index.shtml index.php default.php

Ordlad
09-18-2007, 09:20 AM
Problem solved, thanks a lot!:D