CI中site_url和base_url的区别

你若使用site_url("test/php/1");则实际url为

http://domain.com/index.php/test/php/1

若使用base_url("test/php/1");则url为:

http://domain.com/test/php/1

发现没有,base_url()少了一个index.php

 

在CI中的跳转

header("location:".site_url("common/login"));

posted on 2014-07-14 09:41  面壁偷笑  阅读(198)  评论(0编辑  收藏  举报