• I apologize for this has probably been asked and answered a lot.

    After I upload my site to my host and then go to my site, it is showing all my directory files instead of my home page. How do I fix this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • WP Master

    (@wordpressmaster)

    Do you have index.php in that list?

    Thread Starter staryoocorp

    (@staryoocorp)

    Yes, index.php is in the list.

    WP Master

    (@wordpressmaster)

    What type of hosting you are using? VPS/Dedi or Shared?

    Thread Starter staryoocorp

    (@staryoocorp)

    I believe it is shared.

    WP Master

    (@wordpressmaster)

    Did you checked your Directory Index settings? Make one file index.htm inside the root and then try to reopen your web url, if a blank page appears then there is a problem with Directory Index settings of your server.
    That’s my guess.

    Thread Starter staryoocorp

    (@staryoocorp)

    Okay. So I uploaded just the index.php file and it is still pointing to my directory.

    WP Master

    (@wordpressmaster)

    Not index.php, just make a file with the name index.htm and upload it.

    Thread Starter staryoocorp

    (@staryoocorp)

    Okay, so I made the index.htm. I left it blank so of course it came up blank in the browser.

    WP Master

    (@wordpressmaster)

    It means that your host is only indexing .htm and not .php, it’s a Directory Index related issue.

    Here’s the list normally recommended:

    Solution 1
    If allowed by your host, putting this in an .htaccess file will solve the problem:
    DirectoryIndex index.html index.htm index.php

    Solution 2
    Some hosts allow you to make a change, via their hosting control panel, to the DirectoryIndex. It’s typically described as Indexes or Index documents, but may also require you to type something like
    DirectoryIndex index.html index.htm index.php
    or specify index.php as an index type file.

    Solution 3
    Instruct Apache to treat index.php as an index file. If you own the server, or have access to the http.conf file, simply modify the DirectoryIndex line in httpd.conf to:
    DirectoryIndex index.html index.htm index.php

    Solution 4
    Contact your host

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Directory is Visible’ is closed to new replies.