使用phpstudy 5.6版本 访问tp5路由 报No input file specifie, 而使用wamp访问则正常,现在将解决方法提供给大家
第一种解决方法
切换phpstudy不带 nts 的版本即可解决
第二种解决方法
在tp5框架的public目录下打开.htaccess文件更改代码
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] #系统默认 RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] #解决方法一 # RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] #解决方法二 </IfModule>