Jeroen Steggink
|
| Posted: 06/12/2002, 6:27 AM |
|
Index.php is automaticly loaded by my Apache server when I go to a certain directory. When I enter the url without index.php (i.e. http://localhost/admin/) the login page is not loaded and it shows index.php. But when I enter "http://localhost/admin/index.php" the login page loads.
How can I solve this problem?
|
|
|
 |
Jeroen Steggink
|
| Posted: 06/12/2002, 6:32 AM |
|
I'm using CCS btw.
|
|
|
 |
Peter Roth
|
| Posted: 06/12/2002, 10:16 PM |
|
Hi
... please check:
httpd.conf located in <apache-dir>\conf
search for "DirectoryIndex"
within this line you can define what file has to be loaded by default. So - include "index.php" e.g.
DirectoryIndex index.jsp index.php index.html index.htm default.html default.htm
The sequence is important.
regards
peter
|
|
|
 |
Jeroen Steggink
|
| Posted: 06/13/2002, 12:48 PM |
|
But that's not the problem. Index.php is automaticly loaded when I go to http://localhost/admin/ I made index.php restricted and it doesn't ask me to login when I go to http://localhost/admin/ it just gives index.php directly instead of login.php. But when I go to http://localhost/admin/index.php it automaticly redirects me to http://localhost/admin/login.php and asks me to login. So how come it doesn't give me the login when I go to http://localhost/admin/ ?
|
|
|
 |
Jeroen Steggink
|
| Posted: 06/13/2002, 1:00 PM |
|
Ok, stupid me. Thanks for your help. It does work now, index.html was indeed before index.php, so index.html was loaded instead of index.php.
|
|
|
 |