A quick tip to enable Apache's module, mod_rewrite, for Windows. You need the extra
step 4 & 5 if you're still unable to enable the mod_rewrite in Windows.
- Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
- Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
- Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.
- Then, find the the below section in httpd.conf
DocumentRoot "C:/www/public_html"
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
- Now modify the option for AllowOverride to look like this:
<Directory />
Options All
AllowOverride All
</Directory>
Note:
The
AllowOverride None in
<Directory "C:/www/public_html" > scope will still disable url rewrite even though you got
AllowOverride All in the scope of
<Directory />. So be sure to check the AllowOverride options for every directory scope.
It's always convenient to use
Options All but not a so-good-idea for stricter security. See
Apache 2.0 directives for more info.
ps: Just to say "Woohoo ~~" for my weblog to hit over 100 entries =)