SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    sweden
    Posts
    646
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Why is Index of/ showing

    When I go to my admin page I usually type website.com/admin
    Then I end up at the index.php page.

    But now, all of sudden a list of all the files in that folder are shown like Index of/
    Don't know what I might have changed... is there a way to get that back to automatically load the index.php file instead?

  2. #2
    SitePoint Mentor silver trophybronze trophy
    Mikl's Avatar
    Join Date
    Dec 2011
    Location
    Edinburgh, Scotland
    Posts
    1,565
    Mentioned
    63 Post(s)
    Tagged
    0 Thread(s)
    It sounds like one of two things:

    - The PHP file is no longer present; or

    - The PHP processor is no longer running (on the server).

    Either way, you should talk to your hosting company or administrator.

    Mike

  3. #3
    SitePoint Member
    Join Date
    Aug 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think that PHP is not present, try checking it again

  4. #4
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    sweden
    Posts
    646
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well, if I write website.com/admin/index.php it shows up. But it used to show up when I only wrote website.com/admin
    Maybe I changed a setting on the server, but not sure which one. I didn't get a good answer from the hosting company either. Maybe I should try them again...

  5. #5
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,081
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    Sounds like for some reason you don't have a DirectoryIndex anymore.

    Try putting this in a .htaccess in the root of your website:

    Code:
    DirectoryIndex index.php
    If there already is an .htaccess there, please post its contents.
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Bookmarks

Posting Permissions

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