解决方法:
找到 public/.htaccess 文件,在 index.php 后面添加一个 “?”,完整代码如下:
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
重新访问即可!
本文介绍了一种解决网站URL重写问题的方法,通过修改.htaccess文件中的index.php后添加一个问号,确保网站正常运行。
382

被折叠的 条评论
为什么被折叠?



