解决方案 »

  1.   

    你在开玩笑吧?
    $config['index_page'] = 'index.php',改成$config['index_page']='';
    那么就是你的项目是没有入口文件的了,那么从哪里进入?RewriteRule ^(.*)$ /ci_news/index.php/$1 [L]
    的意思是 将所用的请求都转到 ci_news/index.php
    你连 index.php 都没有了,怎么进去?
      

  2.   

    我加上了$config['index_page'] = 'index.php',但还是提示: not found on this server.
    apache的重写模块也开启了,怎么还是不能访问,新手,不太懂,能说的细一点吗?版主。。
      

  3.   

    CI里有帮助文档http://codeigniter.org.cn/user_guide/index.html
      

  4.   

    你的项目目录是ci_news那你重写规则就应该这么写了
    RewriteRule ^(.*)$ /index.php/$1 [L]
    而且当你是在本地环境测试的时候应该是
    RewriteRule ^(.*)$ index.php/$1 [L]
    第一种是在服务器环境下的写法$config['index_page'] 它就是标明入口文件时那个,跟转向没关系,只要你在目录下有index.php这个文件就行了CI的手册不强大,可以自己看源码
      

  5.   

    ci框架,去掉index.php相关资料蛮多的,你可以查查是否是自己配置的问题。
      

  6.   

    请参考这篇文章:
    http://www.tantengvip.com/2013/04/sae-codeigniter-index/