Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How To Enable Custom Permalinks In WordPress Local Server Environment

Last updated on by
Elegant Themes
How To Enable Custom Permalinks In WordPress Local Server Environment

A problem that several of our users encountered with their local server installations of WordPress was that they couldn’t get permalink rewrite rules to work. Whenever they tried enabling custom permalinks all of their posts and pages would show “page not found” errors.

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

WAMP Apache Modules

This will bring up a long list of modules that you can toggle on and off. Find the one called “rewrite_module” and click it so that it is checked.

WAMP Apache rewrite module

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 configuration “conf” folder. Locate the httpd.conf file. Search for a line like this:

#LoadModule rewrite_module modules/mod_rewrite.so

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

LoadModule rewrite_module modules/mod_rewrite.so


Editorial Staff at WPBeginner is a team of WordPress lovers led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. Juan says:

    Well that was easy….Thank you!

  2. Harry Saggu says:

    Thanks ….Finally all set with this solution.
    i have tried so many search on google but no one suggest me to do change in my local wamp.

  3. robo ek says:

    This pretty permalinks on local server tutorial is what I have searched for. Thanks

  4. kv says:

    not sure ig your familar with instant WP, but this fix doesn’t apply to its local installs! Ant Ideas Thanx

    • Editorial Staff says:

      This method works with most local servers. Instant WP is a script. You should probably ask their devs. why it doesn’t work. We never tried InstantWP.

  5. wmwebdes says:

    Thanks peeps.
    I use XAMPP as my local install and have wondered how to enable pretty permalinks.
    Now I know.
     
    Many thanks.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.