使用APACHE+PHP配置, 当使用.htaccess文件时, 有时会遇到这种错误: No input file specified, 解决方法如下:
这里是源文件:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L] 解决问题后的文件
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]区别在于.htaccess文件的最后一行加了一个问号