« First Website Is Running | Main | Create MySQL User »
January 13, 2005
Mod_rewrite
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:
# cat /usr/local/etc/apache/httpd.conf | grep mod_rewrite
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>
Category : Apache
Posted by FreeBSD Newbie at January 13, 2005 04:38 AM
