Title: Cannot view pages
Last modified: August 20, 2016

---

# Cannot view pages

 *  [lcmonline](https://wordpress.org/support/users/lcmonline/)
 * (@lcmonline)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/)
 * 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)

 *  [secondv](https://wordpress.org/support/users/secondv/)
 * (@secondv)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270812)
 * 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](https://wordpress.org/support/users/lcmonline/)
 * (@lcmonline)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270830)
 * 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
 *  [secondv](https://wordpress.org/support/users/secondv/)
 * (@secondv)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270856)
 * 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](https://wordpress.org/support/users/lcmonline/)
 * (@lcmonline)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270876)
 * 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
 *  [secondv](https://wordpress.org/support/users/secondv/)
 * (@secondv)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270912)
 * You may want to replace that with what I posted. That appears to be your problem.
 *  Thread Starter [lcmonline](https://wordpress.org/support/users/lcmonline/)
 * (@lcmonline)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270918)
 * Genius!
 * Thank you so much, it works now.
 * All the best
    Sean
 *  [secondv](https://wordpress.org/support/users/secondv/)
 * (@secondv)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270932)
 * 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.

## Tags

 * [View Page](https://wordpress.org/support/topic-tag/view-page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [secondv](https://wordpress.org/support/users/secondv/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-view-pages/#post-2270932)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
