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/ and remove the # before the line.
  3. Restart the server.

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






12 responses to “How to Fix WordPress 404 Permalink Error on Localhost”

  1. Curly Avatar

    Thanks! That helped ๐Ÿ™‚

  2. Zac Avatar

    PERFECT!! Thank You!

  3. hazem Avatar

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

    and its not working

    1. sisir Avatar

      Did you restart the server?

  4. Neka Avatar

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

    1. sisir Avatar

      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.

  5. jake Avatar

    Thank you sir! ๐Ÿ™‚

  6. Altaf Gohar Avatar

    Great ! its fixed, Thank you

  7. hita Avatar

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

  8. Squeaky Avatar

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

  9. Jerry Avatar

    Thank you for the concise and accurate solution.

  10. mau thiet ke biet thu Avatar

    so fantastic, thank you ๐Ÿ™‚

Leave a Reply

Your email address will not be published. Required fields are marked *