Harris Khan Harris Khan - 9 days ago 5
PHP Question

Uploading codeigniter site from local server to live

Hy every one, I made a site in codeigniter and its working fine on local server. I uploaded on live server: domain name (http://fantastictravels.co/) and it says "This fantastictravels.co page can’t be found"

I tried many different things but its not working. Here is my code of of view and controller:

controller:

<?php

class Travels extends CI_Controller {

function __construct(){
parent :: __construct();
$this->load->model('travel');
}

public function index()
{

$this->load->view('index');
}
}


View:




<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>


In my config file, the base_url is "http://fantastictravels.co/" and my all the files are located at the root directory of "http://fantastictravels.co/".
Help me out please.

Answer

my controller and model file name was in lowercase letter which I changed into uppercase and it became fixed... :)

Comments