Enable Custom Permalinks in Local WordPress Server
The most preferred method to test new things on a WordPress blog is to install WordPress software on your computer or-else you may end up with a lot of errors in case if anything went wrong. If you’ve already installed it, then you might know that if you change the permalink structure in local WordPress installation, then all your posts and pages would show ‘page not found’ errors. Normally, users won’t like the default permalink structure which looks a bit clumsy. For those users (like me), here is a fix.
How to Set Custom Permalinks in Local WordPress Server?
- Whatever software you use (WAMP, XAMPP or MAMP), you’ll have to turn on the rewrite module in order to fix this issue. To do so, simply find the icon in your taskbar > go to Apache > Apache modules.
- In the sub-menu of Apache modules, click on the module named ‘rewrite_module’. This would enable the custom permalinks in your local WordPress installation.
Local WordPress Server" width="497" height="274" />
- Simply, go to your WordPress dashboard > Settings > Permalinks and choose your preferred WordPress permalink structure.
- Click on the WAMP/XAMPP/MAMP icon located in your taskbar > go to Apache and from the sub-menu, click on the file named ‘httpd.conf’. Alternatively, you can browse C:wampbinapacheapache2.2.22conf and find this file.
- Open the file in any text editor (say notepad).
- Find the following line
#LoadModule rewrite_module modules/mod_rewrite.so
- Now, simply removed the pound sign (#) at the beginning of this line so that it looks like the below one.
LoadModule rewrite_module modules/mod_rewrite.so
- Save the httpd.conf file as it is.
That’s it! You’ll now be able to change your permalink structure like you desired.
Note: You can use any of the above two methods to enable custom permalinks in your WAMP, XAMPP or MAMP server. So choose the one you’re comfortable with.
- How to Create Custom Permalinks in WordPress
- How to Fix the 403 Forbidden Error in WordPress
- Over 101 Blogging Resources (Tools & Apps) To Streamline Your Workflow
- What is the Hello Dolly WordPress Plugin? Should You Delete it?
- The Easiest Way To CleanUP WordPress Database- WP Sweep
- How To Properly Migrate WordPress Permalinks
- 5+ WordPress Plugins To Manage Banner Ads in WordPress
- Wix vs WordPress – Which One is Better? (Pros and Cons)
- How to Add Email Subscriptions for Your WordPress Blog
- 20 Top Selling WordPress Themes on ThemeForest