ubuntu 开启伪静态

在ubuntu 下的设置方法为:

用命令开启伪静态sudo a2enmod rewrite

service apache2 restart

然后在/etc/apache2/apache2.config中设置访问的站点

Directory /home/iat/workspace/PHPsite

 

Options Indexes FollowSymLinks

 

AllowOverride ALL

 

Require all granted

 

Directory

https://blog.csdn.net/haige025/article/details/89488171