得到404错误笨从本地主机移动到服务器
404找不到网页
您请求的页面不存在。
的config.php
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
$config['base_url'] = 'http://myhost/sitedir';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
默认controlerr
class MY extends CI_Controller{
function __construct(){
parent::__construct();
// language
if($this->input->post("lang")){
$this->load->model("language");
$this->language->lang($this->input->post("lang"));
}
// !language
//$this->lang->load("ge");
if (!$this->session->userdata('lang'))
$this->lang->load("ge");
else
$this->lang->load($this->session->userdata('lang'));
}
/**
* mtavari gverdis controleri
*/
function index(){
$this->load->model("dbs");
$data['products'] = $this->dbs->get_products_by_limit("products",7);
$this->load->view("header");
$this->load->view("index_page",$data);
$this->load->view("footer");
}
}
上传默认CI包在其他目录和它的工作
我没有.htaccess文件
对不起,我的坏英国人ISH :(
帮助我:(
http:// myhost/sitedir';这是不同的? 我刚刚插入sitedir和myhost,我没有用我当前的主持人和dir –
当然是......因为你只需要在服务器上运行你的网站,所以你需要在你的config.php文件中配置它,并且你需要根据服务器数据库来更改数据库设置,比如database.php中的root,password,database name。 ..打开你的配置文件夹,编辑它们,然后上载它在服务器上 – Gautam3164
我转向加载数据库库,但它仍然没有工作 –