How to: create a webpage that transfer to different website when opened.

Hello guys. I want to ask how can i create a webpage that is transfering a visitor to different website when he opens this page? Hope you understood.
For example it could look like this www.mywebsite.com/go/1 and when they opend this they just got redirect for example on www.wix.com/price
Hope you get idea. Thank you.

Simply have the page blank so that there is nothing to load and put the Wix Location API and the to function in the page code for it.
https://www.wix.com/corvid/reference/wix-location.html#to

Something like this.

import wixLocation from 'wix-location';

$w.onReady( () => {
wixLocation.to("http://wix.com");
});
1 Like

I love you. Thanks a lot mate.

Or alternatively you can use the routers API and use a redirect so you dont have any blank pages floating around that can be crawled by google. Even with noindex set, they sometimes get crawled.

If SE crawl a blank page it somehow turns bad to whole websites SEO?