I’m having problems with my BaseUrl configuration in a Yii 2.0 application. Well, at least I assume it is that. The application works fine on my local machine, but the configuration there uses a BaseUrl of ‘/viigeo’ while my production machine uses a BaseUrl of ‘/’. This appears to be causing a problem with Bootstrap because the My Company link has a href of ‘//’, which is not valid and takes the user no where (<a class=“navbar-brand” href="//">My Company</a>). Any idea how I can remedy this situation?
Thanks.
Aaron
$config = [
'components' => [
'request' => [
'baseUrl' => '/',
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'XXXXXXXXXXXXXX',
],
'urlManager' => [
'baseUrl' => '/',
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => []
]
],