Hey guys, I faced with problem: I have subdomain bag.domian.com, in web root I have .htaccess with that code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^bag.domian.com$
RewriteCond %{REQUEST_URI} !/bag/web/
RewriteRule ^(.*)$ /bag/web/index.php [L]
But I have an error - Fatal error : Uncaught yii\web\HeadersAlreadySentException: Headers already sent in /home/wordpress/public_html/bag/vendor/yiisoft/yii2/web/Response.php on line 428