Family Encyclopedia >> Electronics

How to Fix Custom Permalinks on WordPress Localhost (WAMP, XAMPP, MAMP)

Many WordPress users running local servers like WAMP, XAMPP, or MAMP encounter issues with custom permalinks. Attempting to enable them often results in "page not found" errors on posts and pages.

To resolve this, enable Apache's rewrite module. Right-click the WAMP icon in your taskbar, then go to Apache » Apache Modules.

How to Fix Custom Permalinks on WordPress Localhost (WAMP, XAMPP, MAMP)

A list of modules appears. Locate "rewrite_module" and click to check it, enabling the feature.

How to Fix Custom Permalinks on WordPress Localhost (WAMP, XAMPP, MAMP)

Custom permalinks should now work seamlessly without restarting.

Alternatively, navigate to your Apache's "conf" folder and open httpd.conf. Find this line:

#LoadModule rewrite_module modules / mod_rewrite.so

Remove the leading # to activate it:

LoadModule rewrite_module modules / mod_rewrite.so