摘要: 首先,你要清楚自己的 Web 服务器是 Apache,支持 mod_rewrite查找httpd.conf中是否开启了mod_rewrite.so然后,在 CI 根目录下新建立一个配置文件,命名为: .htaccess在里面这样写:RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ ./index.php/$1 [L]就可以去掉 index.php 了。要注意 ./index.php/$1 要根据你目录(Web 目录,比如 http://www.domain.com/i... 阅读全文
posted @ 2014-02-19 23:06 不负韶华668 阅读(326) 评论(0) 推荐(0)