Create redirect.js

This commit is contained in:
DirkSchlossmacher 2023-06-21 12:32:11 +02:00 committed by GitHub
parent cffbac4819
commit 6fbd60e62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
public/redirect.js Normal file
View File

@ -0,0 +1,5 @@
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;
}