Title: mod_rewrite not working on localhost?
Last modified: August 18, 2016

---

# mod_rewrite not working on localhost?

 *  Resolved [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/)
 * Hey all – I have an issue here. My “Pretty Permalinks” aren’t working on my local
   installation of WordPress. I found [this thread](http://wordpress.org/support/topic/45523?replies=19),
   and I *didn’t* have the Loadmodule uncommented. So I did that. Didn’t work. Then
   I doscovered when you do the LoadModule, you also have to edit the AddModule.
   So I did that. Still didn’t work.
 * I looked in my error logs, and found this error message:
 * Cannot remove module mod_rewrite.c: not found in module list
 * So I tried it all over again, restarted Apache (again) and the error message 
   disappeared. But the pretty permalinks still do not work – I get a 404 page not
   found.
 * Am I missing something else? If it helps, I’m running Apache 1.3.34. If anyone
   has any ideas, I’d sure appreciate it.
 * [EDIT] By the way – rewrite *is* working. I checked my .htaccess file, and it’s
   being written to (and overwritten to) just fine.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474801)
 * Huh. I did have that problem about 4 versions of XAMPP back. The one I’m using
   now is Apache 2+ (not sure without digging), and it’s working just fine. What
   server combo are you using? XAMPP, MAMP, WAMP, winserver?
 *  Thread Starter [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474802)
 * Aha! I got it 🙂
 * Apparently, “AllowOverride” is mentioned in more than one place in httpd.conf.
   I did a “find” thing and looked for “AllowOverride”, and found about 6 instances
   of it. I had only changed *one* instance – thinking it was the only one. I changed*
   all* of them from “none” to “all” and now they’re working just fine and dandy
   🙂
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474803)
 * Heh, there you go…. that one can trip you up without even HALF trying….
 *  Thread Starter [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474804)
 * Hey vkaryl 🙂 I don’t know what all those letters you posted mean LOL – I’m runnung
   Apache, PHP 4.4.2 and MySQL 5 on my Windows XP machine. I just downlaoded all
   of them and installed them together to get it all up and running. I don’t know
   if that qualifies as any of those things you mentioned up there – but it’s working
   now, anyway!
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474805)
 * Really! Well, you must either be the luckiest person in the world, or a REAL 
   guru…. it’s way easier to get all of them playing nicely together using XAMPP….
 *  Thread Starter [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474807)
 * I’d go for the former. I found a really good tutorial on how to set them all 
   up – but unless it’s hidden in my bookmarks somewhere (it probably is…somwehere…)
   I’ve lost it a while ago. I’ve had this setup for over 3 years now – works just
   great. As I recall, it wasn’t really that hard to do. But I probably should upgrade
   my Apache…(I’ve upgraded PHP and MySQL since the inital setup!)..I’ve just never
   thought I needed to since it seems to work fine!
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474810)
 * I’ve run XAMPP since it was about 0.5 – maybe 6 years? I found it after trying
   to do the 3 parts together setup and failing abysmally….
 * I think you might like to upgrade apache just because it’s starting to be the
   2+ versions on various hosts – maybe not the uberuglies like godaddy (as who 
   would care anyway?) but some of the smaller but more solid ones….
 *  Thread Starter [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474814)
 * You have a point. I’m downloading the newer version now 🙂 I just remember I *
   didn’t* download verion 2 because at the time, it was still beta and reported
   as being kind of buggy. Maybe that’ll give you a hint as to how long I’ve had
   my setup going 😉
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-474816)
 * *laughing* Oh yeah, I know the feeling…. of course, I always just do the beta
   stuff locally anyway – no biggie if it does something dumb, and gives one an 
   idea what could go wrong in the “real world”!
 * That’s the nice thing about XAMPP – even the betas are pretty tight.
 *  [harkos](https://wordpress.org/support/users/harkos/)
 * (@harkos)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-475280)
 * I’m having the very same problem described here: default permalink works, but
   pretty permalink doesn’t. I tried enabling “AllowOverride”, as described, but
   it still doesn’t work. Is there a way of making sure mod_rewrite is enabled? 
   Or is there anything else I’m missing?
 * My config is a MacOS X 10.4.8, Apache 1.3.33 (built-in), PHP 5.2.1. By the way,
   is the correct config file for my server in /private/etc/httpd/httpd.conf?
 * Thanks everyone.
 *  [harkos](https://wordpress.org/support/users/harkos/)
 * (@harkos)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-475281)
 * Just tried out using MAMP instead. Works perfectly.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘mod_rewrite not working on localhost?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [harkos](https://wordpress.org/support/users/harkos/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/mod_rewrite-not-working-on-localhost/#post-475281)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
