• Resolved callumroxburgh

    (@callumroxburgh)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter callumroxburgh

    (@callumroxburgh)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My Domain Points to an Index of Page’ is closed to new replies.