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 transform 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 managing a web hosting account. HostingRaja hosting plans comes with a pre-installed cPanel. It makes it easier for our clients to control their website through a single hosting cPanel account. cPanel is one of the best techniques to organise the web site within the most effective method.

When to Redirect domain?

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

 

Steps to redirect add addon/sub to primary domain in latest version cPanel

Step 1:  Login to cpanel.

 

Step 2: On the domain section, check the redirect option.







Step 3:  Choose the type of option Permanent or Temporary

 

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.

 

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






Drop down this, select the domain from which addon / subdomain want to redirect to another domain .

    Step 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 automatically gets redirected to that domain as mentioned below.  

  Step 6: Providing domain name

 Provide a full  URL where you want to redirect.

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



Step 7: Redirect with or without www.

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

Step 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 WildCard Redirect to redirect your main domain to a different directory on your site.

 

Step 9: Click ADD to redirect

How to redirect website to https (SSL connections) in windows Plesk?


Please refer the below steps to redirect website to https in Windows Plesk.


Step 1:  Login to Plesk.


Step  2: Search for your domain name.


Step 3:  Under particular domain  Click on Hosting Settings.


Step 4: Under Security option, Select "SSL/TLS support" and "Permanent SEO-safe 301 redirect from HTTP to HTTPS" check boxes.




Step 5: In Certificate tab select the SSL certificate for the website then scroll down and click on Ok.

How to redirect from HTTP to HTTPS in WordPress, Magento, Opencart and Joomla?


What is HTTPS?

Https stands for Hyper Text Transfer Protocol Secure which means that all the data that you have shared with that particular website is secured and also ensures better data protection. An HTTPS establishes the secured link which is encrypted, the link is established between the web browser and the web server by using the secure socket layer i.e (SSL) or a (TLS). TLS is the latest version of SSL.


What is an SSL certificate?

If you want your website to be secured and encrypted then first you need to buy an SSL certificate. An SSL certificate is a small data file where it digitally binds a cryptographic key to an organization’s details. In other words, an SSL is a standard security protocol for establishing an encrypted link between a server and a web browser. Hence by using an SSL certificate, the data that is exchanged between the browser and the server remains secure.


Once after installing the SSL certificate and now if you want to access your domain name with HTTPS then follow the below steps:


HTTP to HTTPS Redirect

 

The HTTP to HTTPS redirect needs to go near the top of your .htaccess file. If .htaccess file is not saved then you can create one inside your public_html file.

 

http to https:// without WWW

 

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]

 

http to https:// with WWW

 

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

 

Note:  Replace “yourdomain.com” with your respective domain name

NextJS With NodeJS Installation in Ovipanel



STEP -1 :
Login to your UCP and search the Node Js module in the quick search option.


STEP -2 :
Now install the apps, follow the below methods,
         1. Select the Domains from the Domains list.
         2. Enter the Port number for your application, and Make your Port number between 1025 to 65535.
         3. Select the NextJS application on the Js for the installation section. 
         4. click the save button for creating the APPs. ( Installation will take few minutes ) 

 
We are providing two types of NextJS application

1. Normal Javascripts NextJS application.


2. Typescripts NextJS application.



After installation gets completed, Now you can able to Status, Port, and Apps.

Action methods with NextJS 

        1. The first cross symbol button, helps stop the application.
        2. The second Terminal button, helps to Launch the Terminal application.
        3. The third Reload button, helps to reload your NodeJS application.
        4. The fourth Delete button, helps to completed delete your application.




Click the PM2 Log to download in UCP, 


Migration Existing NextJS Application to Ovipanel,


1. update tour all the Files in the file manager under the public_html folder.

2. Select the Domain name in Domain Mapping (Existing Project).

3. Enter the folder name for your existing application.

4. Enter the port number for your application and Make your Port number between 1025 to 65535.

5. Select the JS type for your Existing Apps.

6. Click the save button to migration your application.



 

How DNS Works?

Before adding any DNS records, you should learn the basics of DNS. You’ll start by dissecting a domain name, and then you’ll learn about the mechanics of DNS resolution, including name servers, zone files, and individual DNS records.


DNS stands for Domain Name System which is also known as the phone book of the internet. As a normal human being we access information online via domain names like- example.com or yourdomain.com etc. Whereas the web browsers interact through Internet Protocol (IP) addresses. Here is where the DNS plays a major role in translating a domain name into an IP address so that browsers can load the request information from the user.


Today devices which are connected to the internet have a unique IP address which other machines use to find the device. Which the he of DNS servers it will eliminate the need for humans to memorize IP addresses such as  104.51.525.432 in (in IPv4) or more complex in newer alphanumeric IP addresses such as 1994:bs00:1004:1::b29:s7a8 (in IPv6).


What is “DNS propagation”?

When you make any changes with your domain name it will take some time for your new domain and DNS changes to be reflected. And the reason behind it is that each ISP automatically updates and caches the DNS records at regular but with unsynchronized intervals. This means that while on IPS may update their cache an hour after you have made your changes another may not up to 3 days. So until your ISP's cache is reset you will not see any changes.


 


How to update DNS records from Client Area?


Step - 1

Login to Client Area Dashboard



Step - 2

My Domains - Manage DNS



Step - 3

Nameservers section update the nameservers and click ‘Save Changes’ to apply.



NOTE: Once the DNS changes are made it will take 24-48 hours to propagate throughout the internet.


If you need any assistance, feel free to contact our technical team members as we are available 24/7 via phone call, chat, ticket system.

To change your registered email ID or phone, Please follow the instruction mentioned in this method. For security reasons, changing the Email ID and phone number, can be done only by the registered user and it can not be done by HostingRaja support staff. It takes about 2 minutes to change the email or phone number by yourself.

Please follow below easy steps to change your email id or phone number for your HostingRaja account.

Step 1 : Please login in your HostingRaja clientarea Click here to login in your clientarea.

Step 2 : Click on "My Details" in top right corner. Refer below screenshot.



Step 3: Then click on "Change Email/Mobile" in the page. Refer below screenshot.


Step 4: Once you click a form loads with your current email id and phone number. If you want to change email id, then edit your current email. If you want to change mobile number then edit your current mobile number and click "Save Changes". 



Step 5: Once submitted the form, you have to double verify your new email id and new mobile number, to which you want to change for ensure you entered correct details.

Step 6: Once confirmed your email id or mobile in the form, you will get one OTP in your current registered email id and phone number. In the form you have enter your current contact details OTP to complete the process.

Step 7: Once OTP validated successfully, you will get success message like below.

 

How to Install Digital Certificate

SSL certificate installation is typically taken care by the hosting provider that offers services for the domain of your website. However if you have knowledge and skills you can also install an SSL certificate yourself on your website.

 

SSL certificates can be effortlessly installed by hosting account owners on shared server, VPS server, Dedicated hosting account. If you need any assistance or help, please feel free to contact our support team via live chat, email or phone support. Our support team can quickly guide you or even install an SSL for you if necessary. We provide free SSL with our cPanel tool and this easy to use interface gives you the aptness to generate, view as well as upload private keys, CSR and also give you the aptness to an SSL certificate on your web page instantly.



Installing an SSL on your server, using cPanel

Once the SSL certificate has been activated and issued to you by HostingRaja, you can start with the process of deploying the certificate using your cPanel control panel. Follow the below steps to install your certificate:

  • Login to your cPanel account using username and password.

  • From the main screen of cPanel, Locate to SSL/TLS in the security area and click it.

 



  • Click on Manage SSL Sites under the Install and Manage SSL for your site (HTTPS) option.

 

 

  • Copy the entire certificate code you received from the certificate Authority containing -- BEGIN CERTIFICATE and END CERTIFICATE-- and enter in into the Certificate: (CRT) field on the page you entered after clicking on Manage SSL sites. You can open certificate file on your computer system using Notepad or text editor.
 

Note: The file containing certificate code can be found in the *yourdomainname* .crt file which is mostly provided to you by email from the certificate Authority.

  • Hit the Autofill by Certificate option, available next to the the CRT entered and then your domain will make an effort to collect website domain name and the private key. Additionally you also have the option to choose the domain name from the drop down menu and you can enter certificate and private key manually into the related boxes available on the page.In case the system declines to fetch the private key, you can easily locate in the Private Key area inside the SSL/TLS manager. Don’t forget to put in Begin RSA and End RSA for the certificate. In the case that private key is not available, in is suggest you to generate new CSR code along with the private key and then reissue an SSL certificate for your website.

 



  • On this step you need to copy and paste the code of CABUNDLE into the box under Certificate Authority Bundle (CABUNDLE), if you find it empty.

 

  • In most of the situations, you do not have to supply the CA bundle code because server will automatically fetch it from public repository at the time of installation.



  • Once you are done with all the steps, hit the Install Certificate button.
 

You will see a message stating Congratulation! The certificate is now installed on the server for your website. The website should now be accessible via https.