Apache mod_rewrite on Windows

One Response June 13th, 2008 | Ekerete.

I use Windows XP as my development platform and this is more of a note from me to me so I don’t have to Google for it next time.

I also use WampServer for Apache, MySQL and PHP and while I’ve only tested on that stack, I believe it to be generic enough.

  • Open the Apache httpd.conf file and uncomment the line ‘LoadModule rewrite_module modules/mod_rewrite.so’ (remove the pound ‘#’ sign from in front of the line).
  • If the lines ‘ClearModuleList’ and ‘AddModule mod_rewrite.c’ are in your httpd.conf file, make sure they are not commented out.
  • Find the section with Document Root: DocumentRoot “C:/path/to/my/root”
  • Modify the option for AllowOverride to look like this:
    <Directory />
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
  • Restart Apache

Apache mod-rewrite should now be working.

One Response to “Apache mod_rewrite on Windows”

  1. V Says:

    But it’s not :(

Leave a Reply