Kohana3: Different .htaccess rewritebase and kohana base_url for dev and production environment
- by Svish
In my bootstrap.php I have the following:
if($_SERVER['SERVER_NAME'] == 'localhost')
Kohana::$environment = 'development';
else
Kohana::$environment = 'production';
...
switch(Kohana::$environment)
{
case 'development':
$settings = array('base_url' => '/kohana/', 'index_file' => FALSE);
break;
default:
…