zf2 apache跳转 404 not found

来源:互联网 发布:mac 怎么恢复u盘的文件 编辑:程序博客网 时间:2024/05/01 03:40

修改/etc/apache2/apache2.conf

<Directory /data/>

        Options Indexes FollowSymLinks Multiviews
        AllowOverride all
        Require all granted

</Directory>

中的AllowOverride设置为all即可,设置为none就提示404

0 0
原创粉丝点击