tp5 重定向缺少index.php报错(No input file specified)解决方法:https://blog.csdn.net/phperguan/article/details/54600491?utm_source=blogxgwz9
6年前 添加回复 2
php5.6版本改了RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]也照样还是No input file specified.
6年前 添加回复 0
这个composer create-project topthink/think 5.1.0
No input file specified.这个咋解决
[最新 王先生 的回答] 搞定了,确实是 .htaccess 文件中配置的问题。刚开始我也是找不到这个文件放在哪里,网上都是瞎几把扯淡一大堆的,有些资料是说要修改这个文件,但是都没有说明这个文件放在哪里(文件都找不到,那还修改个毛线)。.htaccess 这个文件在\tp5\public 这个目录下面,打开这个文件,将 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 这个行中 index.php后面加个问号“?”(英文状态下的问号) :修改前: Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]修改后 Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]修改完后记得重启 Apache 服务器。后来我又找了好多资料,发现https://blog.csdn.net/marswill/article/details/88574607这个人写的跟我自己悟出来的一样如果没有发现这个文件,可以需要先启用一下 .htaccess 。启用方式如下:打开httpd.conf(在那里? APACHE目录的CONF目录里面),用文本编纂器打开后,查找 AllowOverride None 将其修改为AllowOverride All 去掉mod_rewrite.so前面的注释(将前面的#(井号)或 ;(分号) 删掉就好了)LoadModule rewrite_module modules/mod_rewrite.so 希望对你有帮助,兄弟。我是这么解决我的问题的
时间:6年前
老师,我用dump(config::get());获取配置,我config/app.php中明明没有app_status
[最新 勇哥 的回答] 在源码的什么地方可以看出加载顺序是惯例配置->应用配置->模块配置->动态配置。
时间:6年前
简单即真理
http://tp5.com/index.php/admin/user/get 这样就可以访问了
7年前 添加回复 7