【发布时间】:2014-05-31 05:22:25
【问题描述】:
在我的 codeigniter 项目中,我正在使用 htaccess 文件从 URL 中删除 index.php 扩展名。但这给了我
404 (Page Not Found) Error
尝试访问Index 控制器中的页面/功能时。我试图加载一个页面,http://site.org/projectname/index/language/french,这给了我这个错误。
我的 htaccess 代码:
RewriteEngine On
RewriteBase /projectname/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
谁能帮我解决这个问题?提前致谢。
【问题讨论】:
标签: php .htaccess codeigniter