Redirect to a page or site Last updated: 03. Jan 2023
The redirect command - and how to make a redirect site.
Redirect(url)
#redirect("https://www.google.com")#
Create a redirect site
Follow this example to redirect requests (with or without www) www.domain.com to domain.com. Or other domain.
Create a site and make ONLY a "#/404.hash" handler that catches all requests and redirects them to the other site:
> #/404.hash
#{
redirect("https://other-domain.com" + url);
}#
Note that the URL always starts with / and everything from the published site root path.