October 5th, 2001, 11:18 PM
setting a php file as my home page
I am not sure where to post this but..
I am trying to have my home page be a PHP file, instead of the index.html file...
Is there any way to do it...
I want the user to be able to type in www.mysite.com and it will take them to my index.php3 file.
Any help would be appreciated.
October 5th, 2001, 11:56 PM
>> I am not sure where to post this
Apache would be best and PHP be 2nd best.
>> type in www.mysite.com and it will take them to my index.php3 file
Append index.php3 to DirectoryIndex.
Say DirectoryIndex index.html index.htm index.php index.php3, then your index.php3 has lowest priority.
October 6th, 2001, 12:00 AM
im a rookie
Ok and where would I type that?
telnet to my server?
It sounds like the answer but I just need some help making it happen.
October 6th, 2001, 12:07 AM
If it's your server and you have root access, don't use .htaccess. Alter your httpd.conf and find the line DirectoryIndex. Yes, you need to telnet or ssh in, if you don't have physical access to your server. When you are done, you need to restart Apache.
October 6th, 2001, 12:24 AM
i did it in htaccess because I am not sure what my permissions are on the server (I better figure that out)..