0
'components' => [
'urlManager' =>
[
'enablePrettyUrl' => true,
'showScriptName' => false,
],
/*other codes*/
的.htaccessyii2使prettyurl導致內部服務器錯誤
Options +FollowSymLinks
IndexIgnore */*
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
一切似乎好和運行初始化,以確保設置寫入到您的應用程序 但仍500內部服務器錯誤
檢查服務器日誌以查看出了什麼問題。也許沒有安裝mod_rewrite。 – Bizley