0
我想在我的服務器上設置Yii2高級模板前端工作,但後端有問題所有資產返回404錯誤。Yii2高級Apache重寫
這是我的Apache 2的虛擬主機:
DocumentRoot /var/www/.../frontend/web
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/.../frontend/web/>
Options Indexes +FollowSymLinks MultiViews
AllowOverride All
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/backend [NC]
RewriteRule . backend/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Order allow,deny
allow from all
</Directory>
的 「...」 在這裏,您可以路徑短,請忽略它們。
此外後端是一個符號鏈接
任何想法?
此致敬禮, 保羅。