• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hzphper
V2EX  ›  程序员

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

  •  
  •   hzphper · Aug 11, 2014 · 3526 views
    This topic created in 4478 days ago, the information mentioned may be changed or developed.
    照着这里做练习:
    http://www.youarebug.com/forum.php?mod=viewthread&tid=105&page=1&extra=#pid142


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

    http://localhost/ci_02/index.php/calculate/count
    12 replies  •  2014-08-11 15:47:02 +08:00
    wenLiangcan
    wenLiangcan
    Aug 11, 2014
    1
    localhost ...
    hzphper
    hzphper
    OP
    Aug 11, 2014
    2
    在自己的机器上调试的
    xlmo
    xlmo
    Aug 11, 2014❤️1
    3
    需要配置url rewrite。
    hzphper
    hzphper
    OP
    Aug 11, 2014
    4
    怎么配置url rewrite 呢?
    cst4you
    cst4you
    Aug 11, 2014
    6
    检查:

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

    2. 该 Controller 是否真的存在
    Seita
    Seita
    Aug 11, 2014
    7
    楼主在学 CodeIgniter 啊,我这个网站也是用 CI ,欢迎来交流 = =

    http://wehoton.com
    bjzhush
    bjzhush
    Aug 11, 2014
    8
    目测你没有配rewrite
    如果你是妹子,请联系我,包教包会
    bjzhush
    bjzhush
    Aug 11, 2014
    9
    Q 4 111 9 111 0 ^-^
    alex321
    alex321
    Aug 11, 2014
    10
    在 application/logs/2014-08-11.php 中可以找到原因。
    582033
    582033
    Aug 11, 2014
    11
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1883 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 11:46 · PVG 19:46 · LAX 03:46 · JFK 06:46
    ♥ Do have faith in what you're doing.