apache开启php的伪静态模式,出现No input file specified

专注30 / 2023-08-18 / 原文

Thinkphp教程中提供的APACHE伪静态模式出现No input file specified,

打开.htaccess 在RewriteRule 后面的index.php教程后面添加一个“?”

完整代码如下.htaccess

RewriteEngine on

RewriteCond $1 !^(index.php|images|robots.txt)

RewriteRule ^(.*)$ /index.php?/$1 [QSA,PT,L]