Family Best Time >> Electronics

How to enable custom permalinks in WordPress localhost environment

One problem that several of our users encountered with their local server WordPress installations was that they couldn't get the permalink rewrite rules to work. Every time they tried to enable custom permalinks, all their posts and pages would show "page not found" errors.

To fix this, you need to enable the rewrite module in your WAMP, XAMPP or MAMP installation. Start by finding the WAMP icon on your taskbar. Navigate to Apache »Apache modules.

How to enable custom permalinks in WordPress localhost environment

This will bring up a long list of modules that you can turn on and off. Find the one called "rewrite_module" and click so it's checked.

How to enable custom permalinks in WordPress localhost environment

After doing this, your custom permalink structures should work immediately.

Alternatively, you can locate the local server. Go to the apache folder, then go to the "conf" configuration folder. Locate the httpd.conf file. Look for a line like this:

#LoadModule rewrite_module modules / mod_rewrite.so

Just get rid of the pound sign in front of him. So it looks like this:

LoadModule rewrite_module modules / mod_rewrite.so