No input file specified.
2014-03-08 11:18:00| 分类:
PHP
| 标签:
|举报
|字号大中小 订阅
今天安装apache环境,当做到rewrite时候,发现原来在wamp上面运行的好好的代码,突然出现No input file specified.奇怪的要死,于是仔细寻找原因,发现问题处在.htaccess上面,原来是这么写的
RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|css|data|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
修改为
RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|css|data|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
看到差别了么,index.php后面少了一个问,比较迷惑。
参考了
http://jingyan.baidu.com/article/dca1fa6f8d623ff1a44052e8.html
评论这张
转发至微博
转发至微博
评论