Easy php question, Index.html to Index.php

AndrewKingKong

New member
Joined
Apr 9, 2014
Messages
3
It is mainly this is the first time i am using DirectAdmin to host and arrange codes for my website.
The question is basically:

How do i change the public_html map to load index.php instead of index.html?


My php, file is already linked to Apache and i saw that DirectAdmin also has a separate folder named ".php" which was linked to Apache,
no clue how to change it within DirectAdmin, maybe some tutorials available how to work with DirectAdmin? Just answering my question would also be sufficient.


Thanks in advance,

Andrew
 
Put in .htaccess then it will prefer index.php before index.html. First one takes precedence over the next.

Code:
DirectoryIndex index.php index.html
 
Put in .htaccess then it will prefer index.php before index.html. First one takes precedence over the next.

Code:
DirectoryIndex index.php index.html

can upload my own .htaccess file, or where is it located in DirectAdmin?
I went through all directories and i could not find a .htacces file.
 
Back
Top