diff --git a/redirect.js b/redirect.js new file mode 100644 index 0000000..5bccd61 --- /dev/null +++ b/redirect.js @@ -0,0 +1,6 @@ +if (window.location.hostname != document.currentScript.getAttribute('domain')){ + window.location.href = "http://" + document.currentScript.getAttribute('domain') + window.location.pathname; +} +else{ + console.log("Already Redirected"); +} \ No newline at end of file