使用APACHE+PHP配置, 當(dāng)使用.htaccess文件時(shí), 有時(shí)會(huì)遇到這種錯(cuò)誤: No input file specified, 解決方法如下:
這里是源文件:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L] 解決問(wèn)題后的文件
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]區(qū)別在于.htaccess文件的最后一行加了一個(gè)問(wèn)號(hào)