Slim Framework always return 404 Error

后端 未结 8 429
独厮守ぢ
独厮守ぢ 2021-02-01 04:27

These days i\'m using Slim Framework as my simplest tool to develop the php web api. Using these two articles:

  • Coenraets
  • CodingThis
8条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 05:17

    You're right about to include the index.php on your file, but that happen because you're not working properly with your mod-rewrite Please check the following link:

    https://github.com/codeguy/Slim

    In the Get Started part you could see how to configure your server (in case that you were using apache / lighttpd / ngynx)

提交回复
热议问题