I know nginx doesn’t use htaccess, what I meant is that I have to get the same functionalities when moving the website as it works on apache and this seemed to be the only htaccess rule that might matter.
to the config/main.php. But it’s already there, also the file is really there.
EDIT: This is the code of the Controller, it’s a custom controller. Please note i didn’t make this website I just need to move it.
<?php
/**
* Controller is the customized base controller class.
* All controller classes for this application should extend from this base class.
*/
class Controller extends CController
{
/**
* @var string the default layout for the controller view. Defaults to '//layouts/column1',
* meaning using a single column layout. See 'protected/views/layouts/column1.php'.
*/
public $layout = '//layouts/main';
public $headertext = 'home';
public $bodyclass = array();
public $meta_tags = '';
public $meta_description = '';
public function pagetitle($title)
{
$this->pagetitle = $title . " | " . Yii::app()->name;
}
public function init()
{
$cs = Yii::app()->getClientScript();
//JS
// $cs->registerScriptFile('/src/dashboard/js/blocks/databox.js');
$cs->registerScriptFile('/src/site/js/default.js');
//CSS
$cs->registerCSSFile(LessCss::getCssUrl('src/site/css/site.less', false), 'screen, projection');
$cs->registerCoreScript('jquery');
}
/**
* @var array context menu items. This property will be assigned to {@link CMenu::items}.
*/
public $menu = array();
/**
* @var array the breadcrumbs of the current page. The value of this property will
* be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links}
* for more details on how to specify this property.
*/
public $breadcrumbs = array();
}