xuyifei
V2EX  ›  PHP

silex 框架路由失效,出现 404 错误

  •  
  •   xuyifei · Mar 9, 2014 · 3797 views
    This topic created in 4450 days ago, the information mentioned may be changed or developed.
    我在阿里云上面使用了silex,php:5.3.3的应该是可以的,但是除了"/" 根目录可以访问之外,其他的url都无法访问,出现了404的错误。不知道是什么情况会这样,谢谢各位的帮忙!
    3 replies    1970-01-01 08:00:00 +08:00
    mcfog
        1
    mcfog  
       Mar 9, 2014
    rewrite没有配置吧
    xuyifei
        2
    xuyifei  
    OP
       Mar 9, 2014
    @mcfog 哎,我想也是Apache的问题,后来发现是htaccess没有起作用-. -
    atan
        3
    atan  
       Mar 11, 2014
    检查一下vhosts配置里的AllowOverride
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:34 · PVG 09:34 · LAX 18:34 · JFK 21:34
    ♥ Do have faith in what you're doing.