WP Pages All Get 404 Erros Except Home Page (Index.php)

Today I ran into a pretty darn frustrating problem. I had moved a wordpress-based client website offline to work on it and somehow lost ALL of my interior pages. My home page, the index.php page, came up fine, but every link I clicked on led me to a 404 Not Found Page.

After double-checking that the wordpress database had been moved properly, I started poking around online. As you probably know, trying to figure out the solution to your problem online can be just as frustrating as the problem itself. I figured I would post this solution in the hopes of saving you hours of searching around to try to fix your problem.

If this happens to you, there are several things you should try.

(NOTE: I shouldn’t have to say this but pretty, pretty please back up your database and files before you do any of this stuff!!)

Here’s the solution to my problem. I was using WAMP, so if you’re using WAMP, go to Apache > Apache Modules >  and make sure rewrite_module is checked (This was my issue and is a super easy fix.)

If you’re not using WAMP, here’s a compilation of other things I you can try that might solve your problem,

  1. Simple first! Go to your WP dashboard and go to Settings > Permalinks >  and make sure your permalinks are set appropriately if you have a custom structure. I usually just use /%postname%/ but if you have something like /%catagory%/%postname%/ make sure that everything is spelled correctly and that you have the appropriate slashes.
  2. Access your httdp.conf file on your server and find where it says  AllowOverride None and change it to AllowOverride All There are a few of these commands so make sure you get the one in the Directory section
  3. If neither of those works, you can try out some of the other fixes people found here: http://www.yeasir.com/blog/2008/06/wordpress-404-not-found-problem/ which is where I found my fix 🙂
  4. And of course, please post your own solution if you figured this out so that everyone else can find it too!
By |2018-10-01T05:58:59+00:00March 27th, 2015|Blog|1 Comment

About the Author:

Matt is a marketer and WordPress expert. Founder of Scepter, Matt oversees the larger web dev projects for the company. Seeing innovative ideas come to life is his passion, and therefore he pushes Scepter ahead to help our customers bring their projects to life.

One Comment

  1. Bhuwan Roka May 6, 2016 at 4:26 am - Reply

    Good Articles and clear explanation.

    Thank you for sharing!

Leave A Comment