Como activar o habilitar .htaccess en Apache
1. Editar el archivo /etc/apache2/sites-available/default
nano /etc/apache2/sites-available/defaultAllowOverride NoneAllowOverride AuthConfigo
Options Includes
AllowOverride AllYou can also rename your .htaccess file by adding the line below on you httpd.conf file
AccessFileName [filename]-------------
we may enablemod_rewrite by editing our httpd.conf removing the comment on line from;LoadModule rewrite_module modules/mod_rewrite.sotoLoadModule rewrite_module modules/mod_rewrite.sowe 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 | Apache