xuyifei
V2EX  ›  PHP

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

  •  
  •   xuyifei · Mar 9, 2014 · 3901 views
    This topic created in 4507 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   ·   1059 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 23:14 · PVG 07:14 · LAX 16:14 · JFK 19:14
    ♥ Do have faith in what you're doing.