📜  如何在 yii2 中启用漂亮的 url - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:14.842000             🧑  作者: Mango

代码示例2
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