• Hi there,

    I’ve installed WordPress on my localhost, and I can log in, create users and create pages. The problem is whenever I try to ‘view’ any page I’ve created, my browser takes me to the WordPress root directory and shows me a file listing.

    Could someone please tell me how to fix this?

    Thanks
    Sean

Viewing 7 replies - 1 through 7 (of 7 total)
  • What are you using for your localhost? For example XAMPP, MAMP, … What web server is it using (Apache, nginx, lighttpd, …)? Are you able to view posts, categories, etc?

    Thread Starter lcmonline

    (@lcmonline)

    Hi secondv,

    I’m using PHP and Apache which were previously installed, so didn’t need XAMPP or MAMP.

    And yes the same happens with posts and categories.

    Grateful your help,
    Sean

    Are you using the default permalink structure? Do you have this in your httpd.conf file (or something similar)?:

    <IfModule dir_module>
        DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
                       default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
                       home.php home.pl home.cgi home.asp home.shtml home.html home.htm
    </IfModule>
    Thread Starter lcmonline

    (@lcmonline)

    I’m not sure what permalink is, but I found this in my httpd.conf file:

    <IfModule dir_module>
        DirectoryIndex index.html
    </IfModule>

    Surely I don’t have to manually add all the page names to this list?

    Cheers
    Sean

    You may want to replace that with what I posted. That appears to be your problem.

    Thread Starter lcmonline

    (@lcmonline)

    Genius!

    Thank you so much, it works now.

    All the best
    Sean

    No problem Sean. I am glad that it is now working for you. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot view pages’ is closed to new replies.