結果是因為.....
Apache 从2.2升级到 Apache2.4.x 后配置文件 httpd.conf 的设置方法有了大变化
我在自己的httpd-vhosts.conf改這樣就OK囉
AllowOverride All
Require all granted
參考至:
https://oceandlnu.github.io/2016/08/25/Apache2.4%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%9D%83%E9%99%90%E8%AE%BE%E7%BD%AE%E9%97%AE%E9%A2%98/
https://blog.longwin.com.tw/2014/03/apache-22-24-upgrade-conf-2014/
https://stackoverflow.com/questions/12343466/always-get-404-error-in-slim-framework-when-omitting-index-php-in-url
這篇主要是講加上meber.php/add/1像這樣路由就成功,實際上這樣加上附檔名我也成功但是不是原本路由功能阿....好醜
https://stackoverflow.com/questions/9747640/slim-framework-always-return-404-error
沒有留言:
張貼留言