我的是windows10 系统,phpstudy 环境 ,配置的本地虚拟机,tp5.1

访问跟目录正常

tp5  No input file specified.

访问次级页面报错

tp5  No input file specified.

对于 tp5  No input file specified.  的问题,其实是 .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]
</IfModule>

 //只需样改成这样

<IfModule mod_rewrite.c>
 Options +FollowSymlinks -Multiviews
 RewriteEngine On

 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

 

修改完之后访问正常

tp5  No input file specified.

相关文章:

  • 2021-06-12
  • 2022-12-23
  • 2021-08-06
  • 2021-05-16
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2021-11-29
  • 2021-12-25
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案