Auto Redirect to External Site

Reference to here for new feature of Wix to do redirection [Updated at 2 Nov 2020]

Steps to set auto redirect to external site, below take example: set redirect from "cms.its.hku.hk/its" to external site "its.hku.hk"

(Change the "/its" and "its.hku.hk" accordingly)

a1.JPG
a2.JPG
a3.jpg

Create New Page​

  1. Click Menu icon from left

  2. Click +Add Page

   3. Click Page Setting

   4. Click Hide

   5. Click SEO (Google)

a4-01.JPG

   6. Change the URL to its

1.JPG

Use Wix Code to set auto redirect

  1. Click Dev Mode from top bar

  2. Click Turn on Dev Mode

b2.JPG

   3. Click the arrow to open the Page Code at bottom right corner.

import wixLocation from 'wix-location';

 

$w.onReady(function () {

    wixLocation.to("https://its.hku.hk");

 

});

b3.JPG

   4. Paste and edit the URL of the destination in Page Code