WHM/cPanel

How to Configure and remove a Domain Redirect in cPanel

cPanel Domain Redirect

A Domain redirect allows you to make one domain redirect to another domain, either for a website or a specific web page. For example, create a redirect so that www.example.com automatically redirects users to www.example.net.

How to Setup Domain Redirect in cPanel

  1. Login to your cPanel Control Panel.
  2. In cPanel dashboard locate Domains Tab then click Redirect icon.



  3. From Add Redirect Page fill the following
    1. Type: you have two option of redirect types
      1. Permanent 301 is a redirect that will update the visitor’s bookmarks and search engines will index the new site url.
      2. Temporary 302 is a redirect that will redirect the visitor or search engine but will not update the bookmark, and search engines will remain indexing the original page.
    2. https?://(www.)? : from the drop down list you have to select the domain you want to redirect , in-case you want to redirect only single page you can add the page name on the next text editor with / mark.
    3. Redirects to: type the full URL of the page to which your site will be redirecting.
    4. www. redirection:here you have an option to define the redirection behavior:
      1. Only redirect with www. : with this option only redirects visitors that type www. as part of the URL e.g www.yourdomain.com only will redirect to the new url.
      2. Redirect with or without www. :redirects all visitors from your webiste regardless of if they use www. or not.
      3. Do Not Redirect www. : with this option will not redirect visitors that use www. as part of the URL.
      4. Wild Card Redirect :This will add the the file/folder name after the url when it redirect. For example, mydomain.com/hello.html would redirect to mydomain1.com/hello.html.
  4. Click Add Button , now your visitors will redirect to the new URL depends on the options you select above.

Do NOT redirect from domain.com to www.domain.com or from domain.com to domain.com/index.something, this will cause an infinite loop. If you want to do so , you must use mod_rewrite by adding .htaccess code.


How to Remove Domain Redirect in cPanel

To do remove the already configured Domain Redirect in cPanel :

  1. Login to your cPanel Control Panel.
  2. In cPanel dashboard locate Domains Tab then click Redirect icon.
  3. From the Current Redirects List , Select the redirection you want to remove then under Actions, and click Delete , confirm the message and click Remove Redirect button.

XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

3 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago