[resolved] My Domain Points to an Index of Page (3 posts)

  1. callumroxburgh
    Posted 6 years ago #

    I just recently took the jump from free hosting to paid hosting. I installed wordpress in a directory called public_html, I was assured that this was the same as htdocs. Now when you point a browser at my site you get a page called index of that list a bunch on file including wordpress. when you point the browser at http://www.example.com/wordpress you get my front page but none of my post pages work, you just get the same index of page.
    How do I fix this?

  2. MichaelH
    Posted 6 years ago #

    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

    Note: yes public_html is typically called your web-root folder so that would seem to be the correct location to put WordPress files.

  3. callumroxburgh
    Posted 6 years ago #

    I ended up just moving all the files from public_html/wordpress into the folder public_html. It seems to have fixed all the problems.

Topic Closed

This topic has been closed to new replies.

About this Topic