['/escorte/escorte-sexy/', 'escorte-sex', 'cauta'],
];
foreach ($mapper as $key => $urlNew) {
if (strstr($_SERVER['REQUEST_URI'], '.php', true) == $key) {
header('location: ' . $urlNew[0] . (!empty($_GET[$urlNew[2]]) ? ($urlNew[1] . '/' . $_GET[$urlNew[2]]) : ''));
exit();
}
}
$url = $_SERVER["REQUEST_URI"];
$cacheFile = '../escorte-sex.ro/cache/' . md5($url);
include('../escorte-sex.ro/time-cache.php');
if (is_file($cacheFile) && ($time <= @filemtime($cacheFile))) {
readfile($cacheFile);
exit;
}
ob_start();
define('LOCAL', dirname(__DIR__) . '/targoviste/application/');
define('APP', dirname(__DIR__) . '/escorte-sex.ro/application/');
define('SUBDOMAIN', 'http://iasi.sexy-escorte.com');
define('CITY', 'iasi');
// load application config (error reporting etc.)
require APP . 'config/config.php';
// FOR DEVELOPMENT: this loads PDO-debug, a simple function that shows the SQL query (when using PDO).
// If you want to load pdoDebug via Composer, then have a look here: https://github.com/panique/pdo-debug
require APP . 'libs/helper.php';
// load application class
require LOCAL . 'core/application.php';
require LOCAL . 'core/controller.php';
// start the application
$app = new Application();
file_put_contents($cacheFile,ob_get_contents());
ob_end_flush();