ec-cube2 icon indicating copy to clipboard operation
ec-cube2 copied to clipboard

Request routing を導入する

Open nanasess opened this issue 4 years ago • 4 comments

  • nikic/FastRoute を導入する
  • きれいなURLになる
  • html 以下の PHP ファイルを一掃できるため、セキュリティの向上につながる
  • 旧URLからはリダイレクトする

nanasess avatar Dec 18 '19 02:12 nanasess

自分はこれを使ってます https://github.com/dannyvankooten/AltoRouter

nobuhiko avatar Dec 18 '19 02:12 nobuhiko

@nobuhiko AltoRouter は使ったことないのですが、良い感じですか??

nanasess avatar Dec 18 '19 03:12 nanasess

@nanasess 特に問題は起きていないですが、 PHP >= 5.6 ですね。

nobuhiko avatar Dec 18 '19 03:12 nobuhiko

FastRoute の最新リリースは PHP5.4+ なので、特に問題なければこちらを使う方向で進めたいと思います。 PHP5.4をいつまでサポートするかは、別途検討ということで

nanasess avatar Dec 19 '19 01:12 nanasess