Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger will use to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change — hence permalink.
Setting up a local server environment is always good for bloggers, web designer or developer; especially if you are using WordPress as your CMS. You can use either WAMP, XAMPP or MAMP for setting up a Apache, PHP and MySQL powered server environment on your PC and install WordPress. It can give you a good experience and works as a testing place for your code and design.
One of the problems, you might found when using a Local WordPress installation is, there permalink structures. If you are trying to update your default permalink structure, it will not work and display a “Page Not Found” error on the screen. However, this problem has been resolved when using the most updated WAMP, XAMPP or MAMP version by defaulting a small feature in the local server itself.
We will provide a two methods, if happen that this feature wasn’t automatically active.
First Method: Re-writing a Module
What we are going to do is just re-writing a module. This feature is available on WAMP, XAMPP or MAMP. Using WampServer, click WAMP Server icon on your desktop and find the WAMP icon on the taskbar (1). Click on the icon and a menu will appear near to the icon. You can see an option called (2) Apache and (3) Apache Modules as a sub option of Apache.
Hover on the option “Apache Modules“. You can see a bunch of modules list installed on the server including “rewrite_module”. By default, rewrite_module is not active. What do you want to is just enabling that option.
No need to restart your computer or wampserver. Now, try to change the permalink structure from your WordPress permalink dashboard. It would work properly.
Second Method: Editing httpd.conf File
Go to the WAMP server folder on local drive path >>wamp64 >> bin >> apache >> apache Version # >> conf >> httpd.conf. Select your favorite editor and open the file in it.
or You can open it by going to wampserver icon on your taskbar, go to Apache, hover to get the apache sub-categories and click the httpd.conf and it will open by your default text editor.
Find the following line
1 #LoadModule rewrite_module modules/mod_rewrite.so
Replace it by
1 LoadModule rewrite_module modules/mod_rewrite.so
Now, you can change the default permalink structure of your local WordPress installation. Congratulations!
WANT TO GET INSPIRING, ACTIONABLE TIPS AND ADVICE ON TECHNICAL, WEB DESIGN AND CODE EVERY WEEK!