The rules defined in .htaccess files are ignored.
.htaccess files support is not enabled.
To enable .htaccess files support, create *.conf file in
/etc/httpd/conf.d/ with the following content:
AccessFileName .htaccess <Directory "/var/www/vhosts"> Options +All AllowOverride All Order allow,deny Allow from all </Directory>
Then, restart Apache:
# service httpd restart
Please note that in Debian and Ubuntu the service is named "apache2" instead of "httpd" and the path is
/etc/apache2/conf.d/, instead of