Method 1: Control Panel Redirects Tool
Log into your control panel, navigate to package or domain management, select the Redirects icon under Web Tools, and specify both the source domain and destination address.
Redirect Types:
- 301 Permanent Redirect: Recommended when the new site replaces the old one entirely. Search engines use the redirect type as a way to figure out if the old site needs to be kept indexed.
- 302 Temporary Redirect: Suitable for brief redirects, such as during website development or temporary downtime.
Method 2: .htaccess Configuration
The .htaccess file, typically in the public_html folder, enables per-hostname rules for more customised redirects.
Common examples:
- Domain migration: Redirect an old domain to a new one using rewrite rules
- WWW enforcement: Force traffic from non-www to www versions
- HTTPS enforcement: Automatically redirect to secure connections
HTTPS redirection can also be accomplished through the control panel's Force HTTPS tool.