How to perform domain redirection on Wix

If you have any existing hosting with us, you may wish to perform the following.

1) Login to your existing cPanel
2) Addon the domain to the existing hosting. (if the primary domain is not the same domain)
3) Create the redirection rule via “Redirects” on the cPanel
4) Go to your Wix dashboard and point the nameserver to our hosting IP address.
5) Wait for DNS propagation (6 – 12 hours or more)

If you have no hosting with us, but only wish to perform the domain redirection with Wix.

From your site’s Dashboard:

  • go to Settings > Advanced Pannel > Custom Code
  • press the + Add Custom Code button.
  • select All Pages and Load code on each new page
  • select to place code in Body – start.

Now, enter the code below,

<script type="text/javascript">
    window.parent.location.href = "https://www.<your-new-sites-address>.com"
</script>

Ref : https://stackoverflow.com/questions/63970168/redirect-a-wix-website-to-a-new-external-website