行,所以我有这个在我的.httaccess我的Codeigniter .htaccess搞砸了吗?
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
与这在我的配置
$config['index_page'] = "";
这似乎让我做这件事
http://localhost/ci_example/site
,而不是这个..目前为止还不错
http://localhost/ci_example/index.php/site
但现在当我尝试用
http://localhost/ci_example/welcome
它重定向我访问我的欢迎控制器
http://localhost/
为什么重定向和我能做些什么来停止....欢迎控制器具有这
function index()
{
$this->load->view('welcome_message');
}
是什么`site`对应?一个“网站”控制器?你能告诉我们你的'$ config ['base_url']`是什么吗? – BoltClock 2010-12-23 05:19:20