【发布时间】:2013-10-19 09:50:21
【问题描述】:
我正在尝试删除我的本地主机中的 index.php,但它似乎不起作用,它在 http://localhost/testing 上。
我将 .htacces 放在 htdocs 下的“测试”目录中。
LoadModule rewrite_module modules/mod_rewrite.so
在 Apache/conf 也已经取消选中。
这是我的 .htaccess:
RewriteEngine On
RewriteBase /testing/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /testing/index.php/$1 [L]
这是我的配置:
$config['base_url'] = "http://localhost/testing";
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
当我访问登录控制器时,它没有找到。
找不到
在此服务器上找不到请求的 URL /testing/login。
我真的不知道接下来该尝试什么。任何帮助将不胜感激。
【问题讨论】:
-
还有其他设置吗?
标签: php apache codeigniter mod-rewrite