Wordpress permalinks aren't working, except for the default. How do I enable this rewriting? I've tried:
sudo a2enmod rewrite
sudo service apache2 restart
The permalinks are saving to the .htaccess in /localhost/wordpress:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
and I copy to root /var/www just to try, and it doesn't make any difference.