Friday, 27 February 2015

How to Enable Mod Rewrite in WAMP

Mod Rewrite is an important feature in WAMP. Generally it allows the rules in your .htaccess file be obeyed by your server.

One case of this is in WordPress. One of the first things you must do when you install a new WordPress site is to edit your Permalinks.

Permalinks affect how links to the site will be viewed by visitors. The moment you change the Permalink structure of your WordPress installation, it automatically creates a .htaccess file in your root folder.

This .htaccess file rewrites all your pages from the default URL used by WordPress. If you happen to do local developement of WordPress (Which is highly recommended), you need to enable Mod Rewrite on you WAMP.

To do this, simply look at the above image. If you can't figure it out, then follow the following steps:
  1. Launch your WAMP
  2. Right click on the WAMP icon and go to Apache Modules
  3. Locate rewrite_module from your list of Apache Modules
  4. Click it to enable it
  5. Wait for your WAMP to restart itself
There you are done. It wasn't so hard was it?

No comments:

Post a Comment