Am pus platforma fara rewrite deci nu e nevoie de htaccess,am citit ca ar putea fi din htaccess,am facut diferite modificari insa nimic,intr-un final l-am eliminat.
asta e indexul
define("tempDir",dirname(__FILE__) . "/");
if (file_exists(tempDir . "include/settings/server.sett.php") && file_exists(tempDir . "include/settings/common.sett.php"))
{
ob_start();
session_start();
define('BNK_NO_OB_START', true);
define('bNoSession', true);
require_once(tempDir . "include/settings/server.sett.php");
require_once(tempDir . "include/settings/common.sett.php");
if (file_exists(tempDir . "include/settings/dev.sett.php"))
{
require_once(tempDir . "include/settings/dev.sett.php");
}
}
else
{
exit('Missing file: include/settings/server.sett.php');
}
/**
* Define if we should run the benchmark routine
* @package Benchmark
*/
define("benchMark", ((isset($_CONF['debug']) && $_CONF['debug']) ? true : false));
// Check to see if we should run the benchmark package
if ( benchMark )
{
// Require the benchmark class
require_once tempDir . 'include/classes/Benchmark.class.php';
// Instantiate the class
$obenchMark = new BenchMark;
// Start the benchmark
$obenchMark->start();
}
// Require the main init
require_once 'include/init.inc.php';
// Rewrite URL rules depending on the OS and server API
App::setServerParams();
// Lets run
App::run();
// Check to see if we should run the benchmark package
if ( benchMark )
{
// Complete the benchmark
define('BNK_PAGE_LOAD', $obenchMark->finish2());
}
if (App::getParam('debug'))
{
showSql();
}
if (App::getParam('use_gzip') && !defined('FORCE_NO_GZIP'))
{
$sContent = ob_get_contents();
ob_clean();
require_once App::getParam('path') . 'include/functions/Gzip.functions.php';
doGzip($sContent, 'html', App::getParam('gzip_level'));
}
?>




Răspunde cu citat