我正在尝试删除我的本地主机中的 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。
我真的不知道下一步该尝试什么。任何帮助,将不胜感激。