If you want this for just one virtualhost, add the following lines into the apache directives box of the website: <Directory /var/www/web1/web> AllowOverride All </Directory> make sure that you replace the path with the correct path to the website.