ubuntu 14.04转的apache2,
用命令开启伪静态sudo a2enmod rewrite,
然后在/etc/apache2/apache2.conf中设置访问的站点
(没有的目录新增即可)
~~~
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
~~~
修改 “AllowOverride All”
重启Apache2(sudo service apache2 restart)