Permalinks uses mod_rewrite module. By default, this is not enabled in WAMP. Here’s how to enable it.
Left click the WAMP icon near your clock and or find your httpd.conf by searching in your wamp folder. It will be in your apache folder’s conf directory. I found it here: C:\wamp\bin\apache\apache2.2.22\conf.
Once the file is open, find the following line and take the has tag out of it.
#LoadModule rewrite_module modules/mod_rewrite.so
Needs to look like this:
LoadModule rewrite_module modules/mod_rewrite.so
Things to Consider
Before you make any changes, confirm the following:
- WAMP doesn’t have to use chmod for file permissions, but if you are using WP on the web, confirm that your .htaccess file can be updated. If not, change the permissions in chmod to allow WordPress to update the .htaccess file when you change the permalink structure settings.
- Confirm that you really are getting a 404 error when you are testing the links. Any error other than a 404 may lead to some other issue.
Once you know your .htaccess file can be updated, select the permalinks structure you want and save the settings. This will update your .htaccess file with what you need.
There’s not much to it. This enables the rewrite module in Apache and now you can use permalinks. Cheers!