【发布时间】:2014-02-10 20:39:45
【问题描述】:
我的项目在本地成功运行但无法在我的服务器上运行我在 hostgator 中有一个 Linux 服务器托管
默认控制器工作正常,但例如:
example.com/contact-us 不工作,它将重定向到服务器的 404 页面未找到页面但 example.com/index.php/contact-us 工作
我的 .htaccess 代码是:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
配置:
$config['base_url'] = 'http://linksture:2000/websitebusinessforsale.com/project';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
不知道是什么问题,先谢谢你的回复
【问题讨论】:
-
@tomexsans 不适合我...
标签: .htaccess codeigniter