Mod_rewrite
January 13, 2005 Posted by KP
mod_rewrite is enabled by default after installation, make sure the following two lines are present in Apache configuration file (/usr/local/etc/apache/httpd.conf).
LoadModule rewrite_module libexec/apache/mod_rewrite.so
AddModule mod_rewrite.c
A quick command to check this:
# grep mod_rewrite /usr/local/etc/apache/httpd.conf
If you want to use url rewrite in .htaccess file, you must modify httpd.conf.
Find
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
Replace with
<Directory />
Options All
AllowOverride All
</Directory>
Related Posts:
- Protect Directory
- Apache and Google
- Install Awstats on FreeBSD
- Move Apache Log Files
- Install Awstats 6.5 Without Ports
- .htaccess error
Filed Under: Apache