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>
的 “...” 在这里,您可以路径短,请忽略它们。
此外后端是一个符号链接
任何想法?
此致敬礼, 保罗。