There was a problem loading the comments.

How to Redirect a Domain

Support Portal  »  Knowledgebase  »  Viewing Article

How to Redirect a Domain

Note: To create a redirect, the domain must exist on the account, and for the redirect to work, the A record must be pointed to your hosting account.

 

Click here for cPanel instructions.

Click here for DirectAdmin instructions.

 

Follow these steps to redirect a domain in cPanel:

 

1. Log in to your cPanel account.
For instructions on how to log in to your cPanel account, please click here.

e67bc52bc40656261a64477d109e88c36200cd6ec44572d26e421abce763aa4abd741ae6f2174bef?t=16a6aeb0a7b17c76830f158aac1b2d47

 

2. Under the Domains section, click Redirects.

f8b9423b26a835593a49326bb0a81064027187bb40c99342108a25095bb83fc3aa6fe62529bd1ecf?t=d21c8696cf35f66db2b80dba9b8963b6

 

3. Under Add Redirect, you must fill in your redirect configuration.

95903ebd4549c28540032447a78874a94854e69b2290161f3d7688f310813b130ec800be69ad8b6a?t=c1eb06009ad43630ae96b42c5b2c2dd3

 

Type

You will need to select a redirection type. There are the following options:

Permanent (301): This is a permanent redirect, most commonly used when a domain has been permanently moved to another domain name. (i.e. if demo.com has had the website name/URL updated to example2.com)
Temporary (302): This is a temporary redirect, most commonly used for redirecting traffic temporarily (i.e. If a store is having an online promotion and needs to redirect a specific page temporarily)

9970dc73ee1b275494b124a68fea2088efdce9e1b7e58b05b992ba5306860a7f9d7579e7b3e9dfb5?t=7b3b698fc66df5dab33448f436523e51

 

https?://(www.)?

Specifies whether you wish to redirect with only www, with and without www, or redirect the site without the www in the URL. You can also enable a wildcard redirect as a catch-all subdomain to redirect to a specific site.

72cae1df0db4255f982c2e2f76886762ad918adf36416829336e2df7eb01f536632986b4fd9839af?t=01b2ced1dc79e87c44ae58a56b8f6cf5

Followed by the domain you wish to redirect, you can select a domain within your account under the dropdown box. You also have the option to specify the file path you wish to redirect.

3b40da31c4bd39e2ee2a5f3f79da363dbce84ac3451773489421127fe4cb6af2da4588305298dd67?t=9f68ee4fa53ea89a5547029b63d357e4

 

Redirects to

The address you want your domain redirected to.

Note: You will be required to enter the protocol (http:// or https:// followed by the domain URL you want to have the domains redirected to.)

f318b0ae4cb685efb7a93eacedbd7a1518963e3ebe3f8a03c1142f315ef3575fa57349df7e46dd0c?t=b0820c49962801f60e9071254de616f3

 

4. Once completed, click the Add button.

2e57d1db5402d1ed172ff392326bf1f1658947438c7d6433f17990ded8a8ddb7609634d050d1e83f?t=eb16ff6b438238357b4c4ff3653e4d2b

 

5. You'll get confirmation that the domain redirect has been added.

9f8237c28dc1a3bbfd27449069de886be785916492ca8d0af14c6c0a12e632083788d85ea5ec2ead?t=0f4cd7bc37030490bf1f7758c982d032

 

6. You can also confirm that the entry is added by going back to the Current Redirects page.

fa82f6faa2e9a929a70ea6b62e748c415413be8c31deadde49c45370c7c52baf531e11c1cc212f37?t=fd7b255e27667aed5be27e60ba939288

 

 

Follow these steps to redirect a domain in DirectAdmin:

 

1. Log in to your DirectAdmin account.
For instructions on how to log in to your DirectAdmin account, please click here.

93fa78453a69c8622e20602c56d427ffbc75b0d076fae439ca797766e8b0a04e417dcdf46c774d2d?t=edf763a81977cd2c9a4f74c2f4d2f115

 

2. Under Account Manager, click Site Redirection.

7af2c3b6ca712d99d6e25b9452dc649ac484bcfc4039f868b5a64da3a48e47775adf04b48b4c8fe8?t=555235bb12aaabfcd624732ee0de8e57

 

3. Click the Create New Redirect button.

86e0c6c922efbb3ddafe5df3cc907f941e25dc880fddf76f75e0069cff64d277ca9d6688fe54441c?t=5a0949d20f04d65f16c626242fed2b5f

 

4. Under Add New Redirect, you must fill in your redirect configuration.

6911106359dcd2905ba53e23fb405f9acfe07b82854ad1906a424af1c9b32ba253d1e069d9b89800?t=1eebf2fd65b2628e8d5f6af8f62fbb7e

 

Local URL Path

The location of the website files within your File Manager. (The domain is prefilled, you will only need to edit this if the website files/page is in another directory.)

 

Redirect Type

301 — Permanent: When a website has changed its name, you can redirect users to the new domain name or permanently redirect a specific web page to another web page.
302 — Temporary: When building/updating websites, this will temporarily redirect clients to another web page while the current web page is built/updated.

 

Destination URL

The address you want your domain redirected to.

 

5. Once completed, click the Create button.

Did you find this article useful?