php

thinkphp5之模块不存在、HttpException in

2019-03-26  本文已影响0人  左木北鱼

1.问题:

thinkphp5之模块不存在、HttpException in App.php解决方案

image.png

2.解决:

在.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

上一篇 下一篇

猜你喜欢

热点阅读