// 以下以basic版本為例
1.修改config/web.php
'components' => [
#code ...
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
#code ...
]
2.在和入口檔案相同目錄下加入.htaccess檔案
.htaccess内容:
// 以下以basic版本為例
1.修改config/web.php
'components' => [
#code ...
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
#code ...
]
2.在和入口檔案相同目錄下加入.htaccess檔案
.htaccess内容: