Domain Redirects

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:

  1. 301 Moved Permanently
  2. 302 Moved Temporarily

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.

HTTPS source URLs are not currently supported.

Steps to Create a URL Redirect

  1. Go to the Domains module, and click Redirects in the left menu.
  2. Click the Add Redirect button top/right.
  3. Enter the Source URL.
  4. Choose the Redirection Type.
  5. Enter the Destination URL.

Example Domain Redirect

Redirects will take effect once the DNS records have propagated. This time is dependent on the TTL set for the zone (default 60 minutes).

Extended Examples

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/fooexample.nz/baz/foo
  • example.co.nz/baz/foo/barexample.nz/baz/foo/bar