请帮助在域控制面板中将项目转移到共享主机(特别是 reg.ru),在将项目上传到服务器,它被添加到 web + urls 资产(样式等)中的任何地方,由于明显的原因没有加载,因为他不是在名称/web/css .. 文件夹中寻找它们,而是在名称/css 中。我认为使用以下数据在 /web 中创建一个 htacess 文件会有所帮助:
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
可惜..
在 yii2 (basic) root, htaccess 中尝试:
在 web htaccess 文件夹中:
还有 AppAsset.php 文件(以防万一):