// DOCROOT = /var/websites/mysite/public
define('DOCROOT', realpath(__DIR__.'/../../public').DIRECTORY_SEPARATOR);
'paths' => array(DOCROOT.'assets/'),
<link rel="stylesheet" type="text/css" href="http://test.localhost//var/websites/mysite/public/static/cms/css/os.css?1310573600" />
+website | |+app || ||index.php | |+public (my docroot is here) || ||+subfolder ||| |||index.php (symbolic link to website/app/index.php)
RewriteRule ^(.*)$ /subfolder/index.php?/$1 [L]
There was on before... I need this because we're building a CMS on top of Fuel. And the index.php file is never written by the developer but provided by the CMS.Phil Foulston wrote on Wednesday 20th of July 2011:I don't see a reply from nerdsrescueme here?
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ [b]website/app/index.php/$1[/b] [L] # CHANGED THIS LINE
</IfModule>
class Fuel extends \Fuel\Core\Fuel {
protected static function generate_base_url()
{
$base_url = parent::generate_base_url();
// I don't want that subfolder inside my base_url
return str_replace('subfolder/', '', $base_url);
}
}
chdir(DOCROOT);
As long as the next upgrade doesn't break it
but it seems the other steps should have worked without incident. It looks like you're new here. If you want to get involved, click one of these buttons!