If your .htaccess files are being ignored, you need to set the AllowOverride directive for your domain / directory.
In the Apache configuration file that contains your virtual host, add the following configuration:
Â
<Directory /path/to/your/web/root>
AllowOverride All
</Directory>
Â
Then make sure to restart Apache to reload the configuration.