Web Hosting Talk







View Full Version : Direction Problem


berkan3512
06-14-2006, 08:02 AM
My site has a direction problem..When enter the domain name it redicets you to index.html.And If index.html is not there.It doesn't go to index.php..How can I solve this problem..

Patrick
06-14-2006, 08:15 AM
You want it to go to index.php instead of index.html ?

berkan3512
06-14-2006, 08:32 AM
You want it to go to index.php instead of index.html ?

yes..But the problem: it doesn't go to index.php even there is no index.html.And I get 404.Could I explained.:s

Patrick
06-14-2006, 08:39 AM
You could create a .htaccess (or modify an existing one) under the directory where index.php is located and add the following:

DirectoryIndex index.php

You can also change this in Apache's httpd.conf (assuming you have root access).

berkan3512
06-14-2006, 08:52 AM
You could create a .htaccess (or modify an existing one) under the directory where index.php is located and add the following:

DirectoryIndex index.php

You can also change this in Apache's httpd.conf (assuming you have root access).

Thank you very much my friend..:gthumb: It solved the problem.:peace: