Enable custom permalinks for local WordPress installation – WAMP

I taught WordPress basics to one of my friends. He was too excited and started with WordPress. First thing he did was get a local copy of WordPress up and running on his localhost. But as soon as he changed his WordPress permalinks structures, he started getting “page not found” errors for all pages. He called me and I explained him how to get it resolved. Then I thought of posting it here so that if anyone else is stuck with the same problem, find it useful. Here I will show you how to Enable custom permalinks localhost – WordPress.

So here we go.

Basically, for permalinks to work fine, the rewrite module for your WAMP, MAMP, or XAMPP should be turned ON. Since it’s OFF, the rewrite doesn’t work and you get page not found errors.

  • To fix it, click on the WAMP icon in your icon tray.Enable custom permalinks for local WordPress installation – WAMP
  • Navigate to Apache > Apache modules
  • You will see a huge list of modules.
  • Just scroll to a module called “rewrite_module” and select it (click it) so that it’s checked.
  • That’s it!

Now your pretty permalinks for local WordPress should work just fine.

Another way of doing the same thing is – navigate to your apache folder

Generally it is located at “C:\wamp\bin\apache\apache2.4.9\conf” if you have selected default location for wamp installation

Open the file called “httpd.conf” in a text editor, say Notepad++

Search for “rewrite_module”

You should see a line like
#LoadModule rewrite_module modules/mod_rewrite.so

Just remove the hash (#) sign in front of it. So it looks like this:
LoadModule rewrite_module modules/mod_rewrite.so

Save the file and you are good to go.

Enable custom permalinks for local WordPress installation – WAMP-2

Hope this was helpful to you. If you find this article (Enable custom permalinks localhost – WordPress) useful, don’t forget to share and/or comment.

Leave a Reply

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