How to redirect domain in cPanel


What is domain redirection in cpanel ?
        
Redirecting domain name to another domain means that, Whenever you type a domainnameAAA.com in a browser, the user will be redirected to another website like domainnameBBB.com

Brief info about Website Redirection:

Website redirection is also known as URL redirection or URL forwarding. It is a world wide web technique for creating a webpage available under more than one URL. Once a web browser makes an attempt to open a URL that has been redirected, a page with a different URL will be opened. URL redirection service isn't new. In recent years it has become very popular. Website redirection service simply forwards one URL to another, normally in a different domain.

When a website visitor is redirected to a freshly named website domain, the web site address acquires a brand new URL. Businesses typically transforms their website’s original home page into a redirect page. In website redirection a meta refresh tag is being embedded into the website’s source code. Without a redirect, regular site visitors will receive a 404 - Not Found error message.

cPanel is one of the simplest tool once it involves in managing a web hosting account. HostingRaja hosting plans comes with a pre-installed cPanel. It makes easier for our clients to control their website through a single hosting cPanel account. cPanel is one of the best technique to organise the web site within the most effective method.


Example use case:
Assume you that, you run a company ABCDServices.in and due to some reason, you have changed your company name to 1234Services.in, then all your customers will visit your website and you dont want to lose your customers or business. So, then in this case, you can redirect your old website to new website. So that you can retain your online brand identity.

Assume that If want redirect add addon/sub to primary domain just go with this.   

Latest version cpanel

1. Login to cpanel.

2. On domain section, check the redirects option.





3. Choose the type option would to like


Permanent (301):  This is permanent redirection, you have to be very careful in using this. It has lots of advantages in SEO. When you use 301 redirection means, you are informing everyone that, It is a permanent redirection to a new location. So browser or search engines will not come to the old address next time, Instead they will choose your newly redirected website URLs.

Temporary (302):  This is a temporary url redirection, means that, It is just for temporary purpose and not a permanent one. For example, When you develop a new website and during the deployment time, You dont want to lose any business. So in this case, you can use 302 redirect all your customers to my-new-website.com and complete the server update in your old website and remove the redirection.


4. https?://(www.)?




Drop down this, select the domain form which addon / sub domain want to redirect to another domain .

    
5. Enter the path where you want to redirect in form this domain,

Assume that if you give the particular file path, if visitor or customer access that particular file it automatic it get redirect that domain where mention below.      

 
6 .Redirects to

Provide full  URL where you want to redirect.

For example : http://example.com  or https://example.in



7. Redirect with or without www. : In most of the cases, you need to choose the “Redirect with or without www”.
    

8: Wild Card Redirect



If you want to redirect all the files or all the URLs in the website, then you have to tick the above option.

Note:
Checking the Wild Card Redirect Box will redirect all files within a directory to the same filename in the redirected directory.
You cannot use a Wild Card Redirect to redirect your main domain to a different directory on your site.


9: Click ADD to redirect