使用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]區(qū)別在于.htaccess文件的最后一行加了一個問號