Redirect a wix website to a new external website

Viewed 12390

I just made a new website for an association and the client is asking me to redirect their old wixsite website to the new website Did anyone have a solution to do that? It's seems more complicated with non-wix site

(I don't know at all how wix work) Hoping someone could give me some help :)

3 Answers

I found a way to do the redirect from Wix to an external website.

From your site's Dashboard:

  • go to Settings > Advanced Pannel > Custom Code
  • press the + Add Custom Code button.

From my understanding, you want to redirect the entire website so if a user lands on /about it will also get redirected to your new website. Just make sure you:

  • select All Pages and Load code on each new page
  • select to place code in Body - start.

Now, in the code snippet text field, paste this:

<script type="text/javascript">
    window.parent.location.href = "https://www.<your-new-sites-address>.com"
</script>
  • Make sure you got everything right and press the Apply button

Optional: you can give this code snippet a name that might help you remember what this is all about (ex: Redirect to my new website)

Disclaimer:

301 Redirects only work with custom domains. It is not possible to set up a 301 redirect from free Wix URLs to a premium site.

To set up a 301 redirect:

  • Go to SEO Tools in your site's dashboard.
  • Click URL Redirect Manager.
  • Click + New Redirect.
  • Select Single Redirect.

Note: If you want to update multiple pages which share the same path, you can select group redirect. Learn More

  • Enter the old URL path you want to redirect from, (e.g., /about-us) under Old URL.
  • Start typing the URL path of your new page and select it from the drop-down.
  • Click Save & Close or click Save & Add Another to add more.

Here's what it should look like:

enter image description here

The latest version of Wix has a new way of accomplishing this:

Create a page for the route you want to redirect from.

Something like:

/zoom

Then go to that page and turn on Dev Mode and paste the following into the code box that appears at the bottom of the page:

import wixLocation from 'wix-location';

$w.onReady(function () {
    // Redirect to our link
    wixLocation.to("EXTERNAL LINK HERE");
});

Click Publish!

Wix Documentation

Related