我已经在Codeigniter中创建了项目。这个项目在localhost Wamp中工作,但我已经上传了在线服务器不工作
在localhost工作url 中
http://localhost/newjob/index.php/home
但在服务器上上传后,此url不工作
http://example.com/index.php/home
和
http://example.com/
控制器
<?php class Home extends Controller {
public function index() {
echo "home page";
} } ?>
配置
$config['base_url'] = 'http://example.com/';
如果您的家庭控制器名称以H("home.php")开头,请重命名为home.php。
我认为http://example.com/index.php足够了,因为它是一个文件,在文件中不能有文件夹