WordPress.org

Ready to get started?Download WordPress

Forums

404 errors for top-level pages (1 post)

  1. DislikedAluminium
    Member
    Posted 4 years ago #

    I'm developing a site to use WordPress as a CMS, and I'm getting 404 errors trying to navigate to pages in the top-level of the page hierarchy. The problem lies with the custom theme I am developing I think.

    Unfortunately I'm still developing my site on my own computer, so can't give you a link to it, but I hope I can describe the problem in enough detail.

    I have a number of top-level pages. One of them, called 'Home', I have set as my static home page and 'Blog' as my default posts page. I can navigate to home and to any sub-pages, but not the other top-level pages - I just get the 404 page. The links are being correctly created by wp_list_pages(), and the problem goes away if I switch to the default theme. I assume that means the problem is not the permalinks either.

    e.g.

    http://localhost/wordpress/ - works (shows 'Home' page)
      http://localhost/wordpress/home/staff/ - works
      http://localhost/wordpress/home/history/ - works
    
      http://localhost/wordpress/home - doesn't work (but you can get to it from http://localhost/wordpress/ anyway)
      http://localhost/wordpress/blog/ - doesn't work
      http://localhost/wordpress/facilities/ - doesn't work
      http://localhost/wordpress/facilities/accommodation - works

    My question is: if the problem is with my theme, where should I be looking? The theme is still pretty basic and I haven't tried anything too adventurous.

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by DislikedAluminium
  • This topic is not resolved
  • WordPress version: 2.9.2