You can set up to() function on “site” section.
Like this:
import wixLocation from 'wix-location';
$w.onReady(function () {
wixLocation.to("/mait");
});
I tried, and it worked for me… With such code, trying to open any page leads me to “mait” page