Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jul 2004
    engoku no anime
    Thanked 0 Times in 0 Posts

    DirectoryIndex (Apache) not working???

    Hi everyone... I'm new to Apache and PHP, so I was just wondering how to change my main page. I'm running the latest version of Apache and PHP (as far as I know), and I can't get DirectoryIndex to work in my .htaccess file or in httpd.conf. Can someone tell me how to change my default start page, so when I type "http://localhost/" it comes up? Here is what I was using:

    DirectoryIndex index.php

    Maybe I missed something? Also, what directory does the .htaccess file go in?

    Thank you!

    # Edit

    Fixed it. My computer was being screwy. A simple restart and....
    Note to self: when changing from a file that gets cached as your home page such as a text file, clear the cache, restart Apache, and try again

    Thank you everyone!
    Last edited by gohankid77; 09-25-2004 at 06:54 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts