WampServer not recognizing WordPress Permalinks

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

WampServer not recognizing WordPress Permalinks

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: WampServer not recognizing WordPress Permalinks

Post by John Cartwright »

Is mod rewrite enabled?
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: WampServer not recognizing WordPress Permalinks

Post by JellyFish »

I don't know. What's mod rewrite?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: WampServer not recognizing WordPress Permalinks

Post 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.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: WampServer not recognizing WordPress Permalinks

Post 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?
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: WampServer not recognizing WordPress Permalinks

Post 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.
Post Reply