ubuntuもApacheも超久しぶりにさわったのでmod_rewrite有効にするだけで超ハマってしまった。
まずconfig書き換えます。
/etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
で、moduleを有効にするコマンドを叩きます。
$ sudo a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
$ sudo service apache2 restart
* Restarting web server apache2
で、無事にmod_rewrite有効になったー。
めんどくさい…。