thinkphp5之模块不存在、HttpException in App.php解决方案
找了好久,有说修改模块名的,有说改$this->fetch()的,都不行,所以下面才是正解:
在.htaccess中添加
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>
重点:Options +FollowSymlinks -Multiviews
参考文章:
https://blog.****.net/wanganji5252/article/details/81293082