Http redirect to https

Used http://www.mydomain.com website.
now renewal the website by wix, the URL is change to https://www.mydomain.com.

QRcode is attached to the business card before URL.

So need redirect http to https.

Can I use redirect() code to redirect URL?

If it can, please tell me how can do it or tell me some articles.

https://www.wix.com/corvid/reference/wix-location#top
https://www.wix.com/corvid/reference/wix-location/to

Thank you Russian-dima
I already checked this articles, but these articles only https.
cant use that codes.

@nanami
http(s) :// : An external web address.

What does that mean ?
http://
or
https://

On my opinion. :roll_eyes:

URL is external web address. It’s connect to wix by pointing.
When access to http, redirect to https.
Same domain.
http URL is not exit so Use onchange() or to() code can’t work.

Someone help me

It’s solved.
Before I knew, It redirect to https website.

If you have a same problem, please wait few days.

Waiting for? Solution? Ok.

@russian-dima Thanks for a lot of information.
Its solution, only waiting.

The codes didn’t work, so I deleted codes.
and just searched for the solutions.
But today I checked QR-code, its redirect naturally.

So only wait.
Perhaps it is wix’s specification redirect http to https.