我的项目在我的服务器上的本地成功,但不工作的工作,我有一个Linux服务器在HostGator的如何使用codeigniter中的linux服务器上的.htaccess从url中删除index.php?
默认控制器是托管工作正常,但例如:
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';
我不知道什么问题,预先感谢您的回复
可能重复http://stackoverflow.com/questions/15217862/codeigniter-application-works-on-hostgator-but-not-another-web-host – tomexsans
@tomexsans不适合我... – darshan