Social Media Magazine

Solution To Url Rewriting Not Working For Wamp Server In Windows

Posted on the 21 February 2015 by Pro Webguru @prowebguru

Recently while working on one of the project I faced an issue. I had prepared a virutal machine for local dev environment. Moved live wordpress site localhost local environment. And my permalinks were not working when I moved live wordpress website from production server to local development machine. Clicking any permanent link results into 404 error.

Though its not a new issue or very major issue. It was just not in the list of steps to follow for different environment. So thought of sharing this with everyone.

Wampserver Enable rewrite_module

Wampserver Enable rewrite_module

So to fix this you should enable rewrite_module of apache server from your wamp server. Basically it will change “httpd.conf” file and it will restart your apache server.

Pro Tip: Do you know you can Install Full LAMP Package with single command in Ubuntu Linux or even you can manually Install LAMP-SERVER, linux, apache, mysql, php in Ubuntu Linux version ?

How To Enable rewrite_module of Apache In WampServer ?

To enable rewrite_module just follow these steps

  1. Click on wampserver icon.
  2. Click Apache.
  3. Click Apache Modules.
  4. Scroll down and make sure that “rewrite_module” is checked and checkbox is present before that.
  5. If checkbox is not present then just click on it.
  6. Wampserver will be automatically restarted.
  7. If wampserver is not restarted then just restart it.
  8. Refresh your localhost website and now you should be able to browse your website properly.
Enable rewrite_module in wampserver, wampserver rewrite_module, apache rewrite_module, wordpress permalinks rewrite_module solution

Wampserver Enable rewrite_module in Windows 7, Wamp apache rewrite_module

When using WAMP SERVER if you faced an issue similar to me where you downloaded a backup of wordpress and restored it to your local machine. But after restoring your permanent links no more work. It shows 404 error. Then just try above steps see if it works properly.

Back to Featured Articles on Logo Paperblog