About the Post

Author Information

How to Fix WordPress 404 Permalink Error on Localhost

  1. Go to your servers httpd.conf file and open it up with notepad or any text editor (not MS word!).
  2. Now press ctrl+F to open up the search function and search for this line # LoadModule rewrite_module modules/mod_rewrite.so and remove the # before the line.
  3. Restart the server.

If you still having problem please comment and i will try to help.

11 Responses to “How to Fix WordPress 404 Permalink Error on Localhost”

  1. Thanks! That helped :)

    July 6, 2012 at 7:56 am Reply
  2. Zac #

    PERFECT!! Thank You!

    September 24, 2012 at 3:55 pm Reply
  3. hazem #

    thanks, but
    I’ve found that the # already removed on this line,

    and its not working

    November 21, 2012 at 12:51 pm Reply
    • sisir #

      Did you restart the server?

      December 30, 2012 at 11:15 am Reply
  4. Neka #

    How to find httpd.conf file on the server?
    Looking forward for the answer

    March 4, 2013 at 2:46 am Reply
    • sisir #

      Right click on wamp icon then on apache menu you should see the config link. Click it and it will open the configuration file. Another quick method is go to the wamp directory and on windows search bar write “httpd.conf” windows will find the file for you.

      May 28, 2013 at 4:58 pm Reply
  5. jake #

    Thank you sir! :)

    June 14, 2013 at 7:47 am Reply
  6. Great ! its fixed, Thank you

    September 11, 2014 at 9:50 am Reply
  7. hita #

    the file doesnt contain this line: # LoadModule rewrite_module modules/mod_rewrite

    November 4, 2014 at 2:42 pm Reply
  8. Squeaky #

    In Wamp, click on the icon in taskbar, go to Apache > Apache Modules, and enable rewrite module.

    November 20, 2014 at 10:55 am Reply
  9. Thank you for the concise and accurate solution.

    January 21, 2015 at 4:33 am Reply

Leave a Reply