版权声明:Yangliwei 版权所有 https://blog.csdn.net/qq_32674347/article/details/82381628
问题出在public文件夹下的.htaccess文件上
1,首先把..htaccess文件放在和index.php入口文件相同的路径层级下
2,修改.htaccess文件内容为:
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>