[Apache] Htaccess para Yii2, frontend y backend

Ejemplo

Options +FollowSymlinks RewriteEngine On # deal with admin first RewriteCond %{REQUESTURI} ^/(admin) RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L] RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L] RewriteCond %{REQUESTURI} !^/backend/web/(assets|css)/ RewriteCond %{REQUESTURI} ^/(admin) RewriteRule ^.*$ backend/web/index.php [L] RewriteCond %{REQUESTURI} ^/(assets|css) RewriteRule ^assets/(.)$ frontend/web/assets/$1 [L] RewriteRule ^css/(.)$ frontend/web/css/$1 [L] RewriteCond %{REQUESTURI} ^/(images) RewriteRule ^images/(.*)$ frontend/web/images/$1 [L] RewriteCond %{REQUESTURI} !^/(frontend|backend)/web/(assets|css)/ RewriteCond %{REQUESTURI} !index.php RewriteCond %{REQUESTFILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ frontend/web/index.php