V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hzphper
V2EX  ›  程序员

codeigniter 的问题,遇到 404 错误,不知道怎么调试。。

  •  
  •   hzphper · 2014-08-11 14:36:28 +08:00 · 2635 次点击
    这是一个创建于 3552 天前的主题,其中的信息可能已经有所发展或是发生改变。
    照着这里做练习:
    http://www.youarebug.com/forum.php?mod=viewthread&tid=105&page=1&extra=#pid142


    在最后的时候出来一个404错误,不明所以,也不知道要怎么调试,求教了

    http://localhost/ci_02/index.php/calculate/count
    12 条回复    2014-08-11 15:47:02 +08:00
    wenLiangcan
        1
    wenLiangcan  
       2014-08-11 14:40:50 +08:00
    localhost ...
    hzphper
        2
    hzphper  
    OP
       2014-08-11 14:41:21 +08:00
    在自己的机器上调试的
    xlmo
        3
    xlmo  
       2014-08-11 14:42:04 +08:00   ❤️ 1
    需要配置url rewrite。
    hzphper
        4
    hzphper  
    OP
       2014-08-11 14:44:14 +08:00
    怎么配置url rewrite 呢?
    66beta
        5
    66beta  
       2014-08-11 14:48:13 +08:00
    cst4you
        6
    cst4you  
       2014-08-11 15:16:01 +08:00
    检查:

    1. PHP 检查下 PATHINFO 是否支持, 如果不, 试试 http://localhost/ci_02/index.php?c=calculate&m=count

    2. 该 Controller 是否真的存在
    Seita
        7
    Seita  
       2014-08-11 15:28:12 +08:00
    楼主在学 CodeIgniter 啊,我这个网站也是用 CI ,欢迎来交流 = =

    http://wehoton.com
    bjzhush
        8
    bjzhush  
       2014-08-11 15:36:56 +08:00
    目测你没有配rewrite
    如果你是妹子,请联系我,包教包会
    bjzhush
        9
    bjzhush  
       2014-08-11 15:38:19 +08:00
    Q 4 111 9 111 0 ^-^
    alex321
        10
    alex321  
       2014-08-11 15:39:48 +08:00
    在 application/logs/2014-08-11.php 中可以找到原因。
    582033
        11
    582033  
       2014-08-11 15:42:21 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2239 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:06 · PVG 08:06 · LAX 17:06 · JFK 20:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.