nginx下只能显示index.php,后面的视图都弄不出来
http://120.27.124.140/LHP/index.php有欢迎界面http://120.27.124.140/LHP/index.php/freight_admin/不能访问,报404错
http://120.27.124.140/LHP/index.php?c=freight_admin&m=index也不能访问,只显示欢迎界面
freight_admin.php控制器头部代码
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Freight_admin extends CI_Controller {
public function index() {
$this->load->view('index_new.html');
}
感谢 $this->load->view('index_new.html');
改为:
$this->load->view('index_new');
且index_new必须是php文件,含有.php后缀。
页:
[1]