CodeIgniter:404推送服务器后找不到页面 [英] CodeIgniter: 404 Page not found after push for server

查看:219
本文介绍了CodeIgniter:404推送服务器后找不到页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的本地机器上做了一些应用程序,运行确定,但发送到服务器后,我得到404错误页面,我尝试所有的方法,但没有工作,你能帮助我吗?

I did some apps on my local machine, runs ok, but after send that to the server I am getting 404 error page, I tried all methods but none works, can you help me with that?

a2enmod重写已打开。

a2enmod rewrite is on.

我在google中找到我需要在服务器中使用我的php我在我的localmachine或者我的应用程序不会运行,这是真的吗?

I found in google I need use in the server the same version of my php I have in my localmachine or my app will not run, that is true?

我的本​​地:
application / config / config.php

my local: application/config/config.php

$config['base_url'] = 'http://localhost:8888/app/';
$config['index_page'] = 'index.php';

我的伺服器:
application / config / config.php

my server: application/config/config.php

$config['base_url'] = 'http://example.com/app';
$config['index_page'] = 'index.php';

我也试过:
application / config / config.php

I tried too: application/config/config.php

$config['base_url'] = '';
$config['index_page'] = '';

我被困住了,你能帮我吗?

I got stuck on that, can you help me with that?

推荐答案

错误是:在控制器是这样:user.php所以我重命名为User.php,我不明白,但固定在线我的代码。

The error was: in controllers was like that: user.php so i renamed for User.php, i not understand well that, but fixed online my code.

使用user.php在我的本地运行,但不在实时,如果有人知道为什么,请留言。

using user.php run in my local but not in live, if somebody know why, please leave a comment too.

感谢所有人的帮助。

干杯。

这篇关于CodeIgniter:404推送服务器后找不到页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆