redirecting to my new domain with js

Looks like you found a JS solution, here’s how you’d make the http redirect work for page → page redirects if anyone checks this out later

On the root page /

  <meta http-equiv="refresh" content="0; url=https://therift.vip/">
  <link rel="canonical" href="https://therift.vip/">

on foo.html

  <meta http-equiv="refresh" content="0; url=https://therift.vip/foo.html">
  <link rel="canonical" href="https://therift.vip/foo.html">

on bar.html

  <meta http-equiv="refresh" content="0; url=https://therift.vip/bar.html">
  <link rel="canonical" href="https://therift.vip/bar.html">