Hyすべて、私はcodeigniterでサイトを作って、ローカルサーバー上でうまく動作しました。ライブサーバーにアップロードしました:ドメイン名(http://fantastictravels.co/)と「このfantastictravels.coページが見つかりません」ローカルサーバーからcodeigniterサイトをアップロードしてライブ
私は多くの異なることを試みましたが、機能しませんでした。
コントローラ:
<?php
class Travels extends CI_Controller {
function __construct(){
parent :: __construct();
$this->load->model('travel');
}
public function index()
{
$this->load->view('index');
}
}
ビュー:私のconfigファイルで
<head>
<meta http-equiv="Content-Language" content="en-us">
<title></title>
<meta charset="utf-8">
</head>
<body>
<div class="content">
This is test
</div>
</body>
</html>
、BASE_URLは "http://fantastictravels.co/" であると、私のここでのビューとコントローラの私のコードがありますすべてのファイルはルートディレクトリ "http://fantastictravels.co/"にあります。 お願いします。
ホストファイルシステムのイメージも追加 –
.htaccessファイル? – phobia82
あなたはスタイルガイドにアクセスしていますか? http://www.codeigniter.com/user_guide/general/styleguide.html#file-naming – user4419336