Create domain redirects

Definitions

Domain redirects, also known as domain forwarders, URL forwarding, or URL redirection, automatically send people from one URL to another.

There are three types of redirects:

  • 301-Permanent: Permanently points a URL to a new URL
  • 302-Temporary: Temporarily points a URL to a new URL
  • 303-Replaced: The URL has been replaced

In most instances, you will create 301-Permanent redirects.

Before you start

✅ Any domains you’d like to create redirects for must be registered, connected to your hosting account, and have updated nameservers or DNS.

🤔 Think of a redirect like sending someone from one webpage to another. The starting webpage is called the source URL, and the webpage you want to send it to is called the target URL.

ℹī¸ There are countless redirect combinations. Here are some examples:

  • 1ī¸âƒŖ One domain to another domain: cloudhelpcenter.com → infoceptor.com
  • 2ī¸âƒŖ Page to page on the same domain: cloudhelpcenter.com/info → cloudhelpcenter.com/about
  • 3ī¸âƒŖ Subdomain to a domain: about.cloudhelpcenter.com → cloudhelpcenter.com

❌ Do not create redirects of redirects, this will result in loops and errors.

Step by step

Redirect your domain

You can use these steps for all domain redirects, including redirecting to a subdomain. However, for redirects from a subdomain, follow the steps in the subdomain section below.

1. Log in to your hosting control panel

2. From the top right, click the down arrow âˆ¨ and choose the domain you want to create a redirect for

3. Click on the Domain Redirects button

4. Click on the + Create New Redirect button

5. In the Add New Redirect popup, complete the fields and click Create:

  • Local URL Path: Put in your source URL
  • Redirect Type: Select your redirect type. In most cases, you will use 301 – Permanent.
  • Destination URL: Type in your target URL with https://

In our example, we will redirect the domain cloudhelpcenter.com → infoceptor.com

6. Load your redirect via an incognito or private window on your web browser

Redirect your subdomain

Use these steps to create redirects originating from a subdomain to another domain or web page.

1. To redirect your subdomain, you must first create a subdomain. If you haven’t done so already, open and complete all the steps in this guide: Create a subdomain for your domain name

2. Once your subdomain is created, open and complete all the steps in this guide: Access and modify your .htaccess file

3. In your subdomain’s .htaccess file, add this redirect code snippet, replacing targetdomain.com with the domain you want to redirect your subdomain to:

Redirect 301 / https://targetdomain.com

⚠ī¸ Note: The target can be any URL, like a regular domain, a specific page, or another subdomain.

In our example, we will redirect the subdomain about.cloudhelpcenter.com → cloudhelpcenter.com

Therefore, in our about.cloudhelpcenter.com .htaccess file, we’d put in the following code snippet:

Redirect 301 / https://cloudhelpcenter.com

4. Load your redirect via an incognito or private window on your web browser