我使用CI版本3.1.0笨的.htaccess的工作,但不能找到控制器
和我httacces内部文件中像这样
RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
和我有改变我的配置文件来$config['index_page'] = ''
我不工作,但CI似乎不能找到来自m url的控制器。 示例localhost/site/index.php/welcome
其预期的工作,但当请求与localhost/site/welcome
我找不到404页面。
我发现这个,可能会帮助https://gist.github.com/philipptempel/4226750 – dimis283
不工作...它给我错误的对象没有找到... – areiilla
请注意:你的“httacces”文件应该拼写成'htaccess' ...这是非常重要的。 – Sparky