Yii2 Assets are not loading in case of .htaccess redirection

I am redirecting users from wildcard sub-domains to a specific sub directory using mod rewrite rule while not changing address bar url. I was able to do it but with some issues with my yii2 project. After redirecting no assets is loading. No CSS or JS, nothing. I am guessing this has something to do with relative paths of assets. How can I solve this problem? Do I need to change @webroot alias, if so how can I do that?


Source: .htaccess

Leave a Reply