1.开启Rewrite模块
sudo a2enmod rewrite
2.修改apache配置文件
sudo vim /etc/apache2/apache2.conf
将其中的AllowOverride None 全部替换为 AllowOverride All
3.重启apache
sudo /etc/init.d/apache2 restart
1.开启Rewrite模块
sudo a2enmod rewrite
2.修改apache配置文件
sudo vim /etc/apache2/apache2.conf
将其中的AllowOverride None 全部替换为 AllowOverride All
3.重启apache
sudo /etc/init.d/apache2 restart
本文标题:Linux服务器thinkPHP5 url隐藏入口文件
本文链接:https://www.haomeiwen.com/subject/binayhtx.html
网友评论