使用thinkphp5 设置了路由还是404的解决方案

2018-12-15  本文已影响112人  coderYJ

使用thinkphp框架之后设置路由仍然是404问题

<VirtualHost *:80>
    DocumentRoot "/Users/xmg/Desktop/www/tp5/public"
    ServerName www.tp.com
    ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
    CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
    <Directory "/Users/xmg/Desktop/www/tp5/public">
        Options FollowSymLinks Multiviews
        MultiviewsMatch Any
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
需要在这里设置为All才能生效
上一篇 下一篇

猜你喜欢

热点阅读