localhost で symfony プロジェクトを実行しようとしています。私の URL はhttp://hmh/index/newyork/london.phpです。「.php」はサフィックスです (常に URL に追加されます)。URL を処理するはずのルーティング ルールは次のとおりです。
distance:
url: /index/:from/:to/*
param: { module: main, action: distance, template: distance,sf_culture: en }
残念ながら、スクリプト名を指定した場合にのみ機能します: http://hmh/index.php/index/newyork/london.php。それ以外の場合は、デフォルト ルールが使用されます。
なぜそれがとても奇妙に振る舞うのか分かりますか?
ありがとう!