我的項目在我的服務器上的本地成功,但不工作的工作,我有一個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