• One site I’ve working on has a single page that won’t load and I cannot figure out what’s the problem. When I go to the page’s url, it loads a text page saying “Index of /page-slug”, where ‘page-slug’ is the corresponding page’s permalink. It is only applying to this single page, and I have no clue how it got that way to begin with.

    Already tried clearing my cache and the problem persists on Chrome and Firefox.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The first place to check is to fire up an FTP server and see if there is a directory with the same name as the page slug.

    By the sound of it the server is allowing the user to pull a listing of the directory.

    If this is the case, be aware that it is a security issue to let browsers see directory contents. I would remove or rename the directory to make the slug first, but immediately thereafter I would disable directory listing site-wide.

    If you are on Apache this should be a decent reference:
    http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml

    Thread Starter kerrang197

    (@kerrang197)

    Changing the directory name did it! Thanks for the help!

    I’m glad to hear it!

    Please do make sure to look into the directory listing stuff as well because preventing directory listing is important. Your hosting company should be able to assist if needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page loading "Index of /" instead of actual page’ is closed to new replies.