【问题标题】:CodeIgniter shows 404 not found on the server but working fine in localhost (xampp)CodeIgniter 显示在服务器上找不到 404 但在 localhost (xampp) 中工作正常
【发布时间】:2015-08-29 12:18:54
【问题描述】:

我有我的 config.php
$config['base_url'] = 'http://127.0.0.1/myblog/'; 其他默认设置。

我有两个控制器 Main.phpOwner_admin_nepal.php

其他默认设置。

但是每次我上传文件到服务器时,总是显示 404 not found.

【问题讨论】:

  • 我们需要进一步澄清:您是否设置了您输入的 URL,routes.php 的外观?

标签: php codeigniter


【解决方案1】:

问题不够清楚,无法看到问题。但我的猜测是 mod_rewrite。如果在服务器上打开,不要忘记编辑您的 .htaccess - Removing index.php in CodeIgniter using .htaccess file

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-27
    • 1970-01-01
    • 2020-05-12
    • 2021-10-11
    • 1970-01-01
    相关资源
    最近更新 更多