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.
WampServer not recognizing WordPress Permalinks
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: WampServer not recognizing WordPress Permalinks
Is mod rewrite enabled?
Re: WampServer not recognizing WordPress Permalinks
I don't know. What's mod rewrite?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: WampServer not recognizing WordPress Permalinks
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.
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
Awesome! I enabled the rewrite module and it works! Thanks John. 
So what does the module do, and why was it disabled with WampServer's default installation?
So what does the module do, and why was it disabled with WampServer's default installation?
- greyhoundcode
- Forum Regular
- Posts: 613
- Joined: Mon Feb 11, 2008 4:22 am
Re: WampServer not recognizing WordPress Permalinks
Straightforward tutorial for anyone new to this at budstechshed.com, and lots of other places too no doubt.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.