【发布时间】:2016-07-30 00:44:04
【问题描述】:
我是 Codeigniter 的新手。在我的本地主机上开发了一个网络应用程序之后。所以我将我的网站上传到服务器上,然后我导入了我的数据库。之后我更改了 database.php 文件中的数据库设置.. 并且我更改了 config.php 文件中的基本 url。
我收到 404 页面未找到。 找不到您请求的页面。我不知道出了什么问题..我搜索了很多,但没有任何帮助。我的 .htaccess 文件是空的 ..意味着里面没有一行。还有一件事是我从 godaddy 主机购买这个可能会有所帮助。
我的路线.php
$route['default_controller'] = '';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
我的控制器医生cont.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Doctorscont extends CI_Controller {
public function index() {
here is my code..... */
}
}
和我的配置 > config.php
$config['base_url'] = '';
$config['index_page'] = 'index.php';
[1]:
【问题讨论】:
-
你的 CI 版本是多少?
标签: php .htaccess codeigniter hosting