diff --git a/public/redirect.js b/public/redirect.js index 966217809..768cb22ca 100644 --- a/public/redirect.js +++ b/public/redirect.js @@ -1,5 +1,13 @@ +if (window.location.hostname === "adexgpt.adexpartners.com") { + var currentPath = window.location.pathname + window.location.search + window.location.hash; + var newUrl = "https://adexgpt.vercel.app" + currentPath; + window.location.href = newUrl; +} + +/* if (window.location.hostname === "adexgpt.vercel.app") { var currentPath = window.location.pathname + window.location.search + window.location.hash; var newUrl = "https://adexgpt.adexpartners.com" + currentPath; -// window.location.href = newUrl; + window.location.href = newUrl; } +*/