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

替朋友解决一个问题,有偿技术支持, 200 元预算

  •  
  •   figol ·
    figol · Sep 4, 2016 · 5071 views
    This topic created in 3718 days ago, the information mentioned may be changed or developed.
    http://*****.com/index.php/member/home 404 错误
    http://*****.com/?/member/home 正常
    网站是 PHP 写的, nginx 做为服务器, php-fpm , index: index.php ;
    index.php 是唯一入口文件, member 对应是 module name , home 对应 action name ;

    nginx 该如何配置,避免 http://*****.com/index.php/member/home 404 错误
    有兴趣的直接留 QQ 或是 WECHAT ;
    10 replies  •  2016-09-05 10:53:16 +08:00
    RoundCat
    RoundCat
    Sep 4, 2016 via Android
    1
    我猜是 ci 框架吧?
    piku
    piku
    Sep 4, 2016
    2
    我建议你试试 http://*****.com/index.php?/member/home
    geeglo
    geeglo
    Sep 4, 2016
    3
    企鹅 2530668873
    mjVtb96d2bap2u3Z
    mjVtb96d2bap2u3Z
    Sep 4, 2016 via Android
    4
    你就直接说什么框架吧, thinkphp ?
    taozywu
    taozywu
    Sep 4, 2016
    6
    企鹅 3079520070
    laoyuan
    laoyuan
    Sep 4, 2016
    7
    正确姿势难道不应该是这样么
    http://*****.com/member/home
    yangg
    yangg
    Sep 4, 2016
    8
    用的 rewrite 吧?换成 try_files $uri $uri/ /index.php?$query_string
    figol
    figol
    OP
    Sep 4, 2016
    9
    感谢 @码代码的女孩子,已经帮我解决了问题;
    zuotech
    zuotech
    Sep 5, 2016
    10
    @figol 码代码的女孩子 你真是女孩子吗 哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2108 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 14:41 · PVG 22:41 · LAX 06:41 · JFK 09:41
    ♥ Do have faith in what you're doing.