if (navigator.userAgent.indexOf(“Googlebot”) !== -1) {
window.location.href = ‘/’;
[…]