#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Location
    Atlanta, GA
    Posts
    269
    Rep Power
    15

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> 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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Location
    Atlanta, GA
    Posts
    269
    Rep Power
    15

    im a rookie


    Ok and where would I type that?

    htaccess?
    telnet to my server?

    It sounds like the answer but I just need some help making it happen.

    Thanks again.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    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.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Location
    Atlanta, GA
    Posts
    269
    Rep Power
    15

    cool


    i did it in htaccess because I am not sure what my permissions are on the server (I better figure that out)..

    It works...

    Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo