thinkphp5.1出现模块不存在或者No input file specified.的问题

mac2024-07-20  52

目前博主还未找到出现该问题的原由,只找到了解决方法,如下:

修改public目录下的.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>

这样就不会出现标题中的错误了!

最新回复(0)