Page 1 of 1

WampServer not recognizing WordPress Permalinks

Posted: Tue Sep 07, 2010 1:43 am
by JellyFish
I have WampServer 2.0 installed as a localhost and WordPress installed in my server directory (wamp/www/wordpress). In the permalink settings of the WordPress admin, I can change my links from being http://localhost/wordpress/?post_id=2 to http://localhost/wordpress/archives/2. Only for some reason, my server does not respond with anything and I get a 404 or "Oops! This link appears to be broken." (as google puts it).

I figure this is an issue with WampServer not being set up right. I'm very new to apache, so what do I need to do to configure WampServer correctly?

Thanks for reading. All help is appreciated.

Re: WampServer not recognizing WordPress Permalinks

Posted: Tue Sep 07, 2010 5:29 pm
by John Cartwright
Is mod rewrite enabled?

Re: WampServer not recognizing WordPress Permalinks

Posted: Wed Sep 08, 2010 4:19 pm
by JellyFish
I don't know. What's mod rewrite?

Re: WampServer not recognizing WordPress Permalinks

Posted: Thu Sep 09, 2010 2:08 pm
by John Cartwright
Mod rewrite is an apache module which allows you to write rule-sets to alter the structure of the url. This must be enabled to allow for the WordPress url structure you have chosen.

See phpinfo() to verify you have mod_rewrite enabled under the loaded modules section.

Otherwise, Google or your host should have plenty of information on how to enable it.

Re: WampServer not recognizing WordPress Permalinks

Posted: Thu Sep 09, 2010 8:53 pm
by JellyFish
Awesome! I enabled the rewrite module and it works! Thanks John. :D

So what does the module do, and why was it disabled with WampServer's default installation?

Re: WampServer not recognizing WordPress Permalinks

Posted: Fri Sep 10, 2010 2:18 am
by greyhoundcode
budstechshed.com wrote:Fire up your text editor (not word processor) and open the httpd.conf file. Be careful editing this file. It contains the configuration for the Apache server. If you mess it up you will probably crash the server so make a backup before editing. If you installed WAMP in the default location the file will be located here:

C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf

Your looking for the line: #LoadModule rewrite_module modules/mod_rewrite.so which should be around line 116. To enable mod_rewrite just remove the ‘#‘ symbol at the beginning of the line.

Save the file and then restart the Apache server if it was already running. Now you’ll be able to enable ‘Pretty Permalinks‘ on your Wordpress site.
Straightforward tutorial for anyone new to this at budstechshed.com, and lots of other places too no doubt.