2016-07-30 ubuntuのapache2でmod_rewriteを使用する ubuntu apache2 以下コマンド実行a2enmod rewrite /etc/apache2/apache2.conf を編集<Directory /foo/bar/> AllowOverride All Require all granted</Directory>※AllowOverride Allが大事 apache2 再起動service apache2 restart 以上。