0
URLのエイリアスに問題があります。urlmanager yii2とコントローラ/ディテールの使い方?alias = abc-xyz
.htaccessファイル
RewriteEngine on
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php
RewriteRule . index.php
私はまだリンクに
controller/detail/abc-xyz
にアクセスできません
controller/detail?alias=abc-xyz
リンクにアクセスコンフィグ
'<controller:\w+>/<action:\w+>/<alias:\w+>'=>'controller/action',
が、URLで使用してみてください
なぜか分かりません。
私を助けてください。 おかげで、
本当にありがとうございました、このルールは変更する必要がへ: ' '<コントローラ:\ + W>//<別名:[\ \ W - ] +>' => '/'、 ' –