This functionality allows you to redirect a domain to another website. You can setup a redirect from a domain (e.g. example.com) or any subdomain (e.g. blog.example.com) to another URL. Redirects are managed through the Domains > Redirects sub-module.
There are two types of redirects supported in this module:
In order to use the Redirects in the SiteHost Control Panel, the domain's name servers must be pointed at SiteHost's Name Servers, and the DNS Zone must not be using a zone template.
Redirects will take effect once the DNS records have propagated. This time is dependent on the TTL set for the zone (default 60 minutes).
Catch-all Redirect:
example.co.nz
Paths that don't match other rules will use this rule.
Root-only Redirect:
example.co.nz/
This rule only matches the url example.co.nz
and example.co.nz/
.
Path Redirect:
example.co.nz/foo
and example.co.nz/foo/bar
Redirects only example.co.nz/foo
and example.co.nz/foo/bar
respectively. Uses the most specific path first.
Wildcard Redirect:
example.co.nz/baz/*
→ example.nz/baz/*
This rule redirects all URLs starting with example.co.nz/baz
and passes the remaining path to example.nz/baz
.
For example:
example.co.nz/baz/foo
→example.nz/baz/foo
example.co.nz/baz/foo/bar
→example.nz/baz/foo/bar