Wix

How to 301 redirect your Wix homepage to another domain URL not on Wix

Quick summary:

Scenario: Redirect site1.com‘s homepage (your Wix homepage) to site2.com (your new website on a different non-Wix server) without the need to modify your domain’s Wix nameservers.

  1. Backup and/or screencap all of your Wix DNS records in case you make a mistake and need to revert back.
  2. Set up an account with another web host with the same domain name as the Wix domain that you want to redirect e.g. site1.com.
  3. Delete existing Wix A records and replace with one new A record that points to the IP address of the server you just created the new external account for site1.com.
  4. Delete the existing Wix CNAME record and create one new (alias) CNAME record for www that points to site1.com.
  5. In your new web hosting account for site1.com, create a .htaccess file that allows you to implement 301 redirects to your new domain e.g. site2.com.

In simpler terms, what this means is that I’ll be redirecting site1.com (on Wix) to site1.com (outside of Wix) to site2.com (also outside of Wix) i.e.

site1.com >> site1.com >> site2.com

More detailed step-by-step instructions:

If you need to perform a homepage redirection for your domain when it’s built with Wix, you’ve probably run into this problem.

“You can’t redirect traffic from your homepage”

Although you can redirect any page within your Wix website to any other page, either internally or externally to another domain entirely, the Wix platform won’t allow a homepage redirect to a different domain.

If you try, you’ll see the message “You can’t redirect traffic from your homepage”

Wix doesn't allow a 301 redirect from your website homepage

How it’s done

Well, as it turns out, you can…just not directly within Wix.

Let’s say your Wix domain is site1.com and you want to 301 redirect the homepage to site2.com. Site2.com will already need to be hosted somewhere else e.g. Ionos, Hostgator, SiteGround, 123-Reg, GoDaddy etc.

For this example, We’ll assume the your nameservers are with Wix. These may look something like:

ns13.wixdns.net
ns12.wixdns.net

I’ll use SiteGround as the third-party hosting company as I find them to be the most reliable web host and they do great introductory packages too. Be aware that to successfully complete the Wix homepage redirect you’ll need to be hosting TWO domains for a while, not just the one.

In other words, you need to set up site1.com AND site2.com domain names within your Siteground (or other host provider’s) dashboard.

As I’m using SiteGround for this example, I’d either have to have two separate “StartUp” accounts or one “GrowBig” account.

View current prices

The temporary two-domain solution

In effect, site1.com will partly remain with Wix initially, whereas site2.com will be our live site. This means that if you have your emails with Wix, this is where they’ll stay until you decide to migrate them.

Once we’ve added both of our domains to our SiteGround account, we need to make a note of the IP address of site1.com within our hosting account. You’ll need this regardless of what hosting provider you use. In our case, in SiteGround it looks like this:

Make a note of your website's IP address

DNS changes

To make the magic happen, log in to your Wix account, go to the domain you want to redirect and look for the DNS settings. At the time of writing, you can find your website’s DNS records by going to Settings>> Domain>> then click on the three little dots and choose “Manage DNS Records”.

Changing “A” and “CNAME” records


(NOTE: Before you do anything, copy and screenshot all the records in case something goes wrong and you need to revert your changes.)

A records and CNAME records determine what server our website domain name “points” to.

First, delete all A records. There may be three that look something like this:

Manage and change some of your DNS records within Wix

Once deleted, you need to add one new A record that points to the IP address of the site1.com duplicate domain that you’ve set up externally.

To do this, click on “Add Record”. Leave the first box under “Hostname” empty. In the “Value” box, paste the IP address. Leave the TTL as it is and save your changes.

Next, we need to edit the CNAME record. Under “Hostname” it should already have www.site1.com (this will be your own website’s domain name) so all we need to change is the Value. In the Value box it’ll already say something like cdn1.wixdns.net so we need to delete this and put our actual website URL but WITHOUT the www part. In my example case, it’d be site1.com. Leave the TTL unchanged and save your changes.

Just to recap, In my case, my Hostname should be www.site1.com and the Value should be site1.com with a TTL of 1 Hour.

Set up our .htaccess file in our external domain control panel

Now log into your external hosting provider and go to your site1.com domain’s settings. In my case this is SiteGround. Whoever you’re using for external hosting, they’ll have an option to edit your site’s files. Go to your root directory and create a brand new file and call it .htaccess.

In this scenario, I am 301 redirecting www.site1.com to my 5-page site2.com website that I’ve already created. This is what it looks like:

# Enable the RewriteEngine
RewriteEngine On
# Redirect the homepage of my Wix site1.com to my new externally hosted site2.com
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /?\ HTTP/ [NC]
RewriteRule ^$ https://site2.com/ [R=301,L]
# Redirect specific pages
Redirect 301 /page2 https://site2.com/page2
Redirect 301 /page3 https://site2.com/page3
Redirect 301 /page4 https://site2.com/page4
Redirect 301 /page5 https://site2.com/page5

Of course, you’ll need to substitute my example URLs and individual page URLs above with your own domain names and individual page URLs.

There are also various combinations of how you want to write the .htaccess file. e.g. whether you want to use www as a website prefix or not so please bear in mind the above is from www on Wix to non-www on site2.

In summary

I hope this guide has, at the very least, shown you that it’s possible to redirect the homepage of your Wix website to a new URL and provided you with the necessary tools to carry out the task yourself