I need to redirect some pages of my Wix site to an external non-Wix site. I need to do 301 redirects for the SEO on the other site.
I have a router set up, but I’m not sure how to make this code work. Where do I put this code? The actual page, the router page, or the backend JS?
What else do I need to set up for this to work?
I would really appreciate the help!
import {redirect} from 'wix-router'
export function myRouter_Router(request) {
return redirect("http://myothersite.com", "301");
}