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.

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

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