How to Configure Apache to Use htaccess Files

Written by Zac Vineyard in Code

Getting Apache to recognize .htaccess files is a pretty easy task. All you need to do is look for where your root web directory is defined in your Apache configuration files. On Ubuntu, this location is /etc/apache/sites-enabled. Once you have located the file, just add the line "AllowOverride All" (instead of AllowOverride None) to the root directory configuration detectives. Your final code should look something like:


Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all