sudo vi /etc/apache2/apache2.conf  (没有的话,可以尝试sudo vi /etc/apache2/sites-available/000-default.conf)打开apache配置文件 <Directory /var/www/>  #实际目录根据网站根目录而定     Options Indexes FollowSymLinks     AllowOverride None  #改为All     Require all granted </Directory>  执行命令:sudo a2enmod rewrite 在网站的根目录下建立… Read More