Open kaptnkage opened 6 years ago
Ive checked your main component and found setWebroot section thinking this is where I could hack it in my config/bootstrap.php making an alias for webroot to no avail.
here is my apache conf "bty" is like my backend
on frontend everything compresses fine
any help?
Alias /bty "/Server/BTY/web/bty" <Directory "/Server/BTY/web/frontend"> <IfModule mod_php5.c> php_value include_path "/Server/BTY/app" php_admin_flag engine on </IfModule> <IfModule mod_rewrite.c> RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> </Directory> <Directory "/Server/BTY/web/bty"> <IfModule mod_php5.c> php_value include_path "/Server/BTY/app" php_admin_flag engine on </IfModule> <IfModule mod_rewrite.c> RewriteBase /bty/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule> </Directory>
Alias /bty "/Server/BTY/web/bty"
<Directory "/Server/BTY/web/frontend">
<IfModule mod_php5.c>
php_value include_path "/Server/BTY/app"
php_admin_flag engine on
</IfModule>
<IfModule mod_rewrite.c>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Directory>
<Directory "/Server/BTY/web/bty">
RewriteBase /bty/
RewriteRule . index.php [L]
here is my bty/config/bootstrap.php @BTY is my main app folder Yii::setAlias('web', '@BTY/web/bty/'); Yii::setAlias('webroot', '/');
Yii::setAlias('web', '@BTY/web/bty/');
Yii::setAlias('webroot', '/');
Ive checked your main component and found setWebroot section thinking this is where I could hack it in my config/bootstrap.php making an alias for webroot to no avail.
here is my apache conf "bty" is like my backend
on frontend everything compresses fine
any help?
Alias /bty "/Server/BTY/web/bty"
<Directory "/Server/BTY/web/frontend">
<IfModule mod_php5.c>
php_value include_path "/Server/BTY/app"
php_admin_flag engine on
</IfModule>
<IfModule mod_rewrite.c>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
</Directory>
<Directory "/Server/BTY/web/bty">
<IfModule mod_php5.c>
php_value include_path "/Server/BTY/app"
php_admin_flag engine on
</IfModule>
<IfModule mod_rewrite.c>
RewriteBase /bty/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
</Directory>
here is my bty/config/bootstrap.php @BTY is my main app folder
Yii::setAlias('web', '@BTY/web/bty/');
Yii::setAlias('webroot', '/');