nano /etc/apache2/sites-available/default
AllowOverride None
AllowOverride AuthConfig
Options Includes
AllowOverride All
AccessFileName [filename]
;LoadModule rewrite_module modules/mod_rewrite.so
toLoadModule rewrite_module modules/mod_rewrite.so
we need to change the AllowOverride directive also from<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory>
to<Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all Satisfy all </Directory>
You can also rename your .htaccess file by adding the line below on you httpd.conf fileAccessFileName [filename]
example: AccessFileName .configuration