Answer the question
In order to leave comments, you need to log in
Why are yii2 scripts not loading correctly after installation?
After installing via composer
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
and go to the host address, CSS, JS is not loaded. In general, there is no default design (I suspect that there will be problems later). It looks like this: Answer the question
In order to leave comments, you need to log in
padlyuck : slo_nik : Stasgar : Thanks, this config helped:
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^.*$ index.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question