的.htaccess为什么base_url()返回无效的url?
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
控制器
<?php
class Home extends CI_Controller
{
function index()
{
echo base_url();
}
} ?>
配置 $配置[ 'BASE_URL'] = ''; $ config ['index_page'] ='';
输出
我有网址助手已经加载。它应该是http://localhost/ci/
请帮助我。
删除'从第一线的RewriteCond system'。 – Tpojka