美文网首页
Linux服务器thinkPHP5 url隐藏入口文件

Linux服务器thinkPHP5 url隐藏入口文件

作者: tysnd | 来源:发表于2020-03-24 21:29 被阅读0次

    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