How to redirect from HTTP to HTTPS using .htaccess file

If you have a SSL Certificate installed on your website, you can automatically redirect all your visitors to the secured version of your website (https) so your information will be encrypted and protected from external threats.

If you don’t know what the .htaccess file is, or how to create one, you must read this blog first:

https://www.thcservers.com/blog/what-ishow-to-create-a-htaccess-file/

In order to redirect from HTTP to HTTPS you will have to add this line to your .htaccess file:

RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don’t put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Click Save.

 

How to generate, install and manage your SSL Certificates

What is a SSL Certificate?

SSL Certificates are small data files that digitally bind a cryptographic key to an organization’s details. When installed on a web server, it activates the padlock and the https protocol (over port 443) and allows secure connections from a web server to a browser.

Once installed, it is possible to connect to the website over https://www.mydomain.com, as this tells the server to establish a secure connection with the browser. Once a secure connection is established, all web traffic between the web server and the web browser will be secure.

  • How to install using cPanel SSL/TLS Manager.

1. Login to your cPanel account

2. Go to Security section and click the SSL/TLS Manager button.

ssl3

Now you have to generate a new Private Key

Click on Generate, view, upload or delete your private key.

ssl1

Typically a Key Size of 2,048 bits is fine, but if you need another one you can select it from the drop-down.

Fill in a Description for the key if you’d like, then click Generate

ssl2

Your Private Key will be generated

sslkey

You will need your Private Key to install your SSL Certificate.

  • Certificate signing request (CSR)

Before getting an SSL certificate for your website, you need to generate a Certificate Signing Request (CSR). This request will include your domain name and company, as well as information specific to the server you’re hosting on.

Fill our the fields required and press Generate

csrreq

You will now have to select the newly generated CSR and supply it to the Certificate Autority that you’re buying the certificate from.

csrcrop

  • How to install a Self-signed SSL Certificate.

When using a self-signed certificate, there is no chain of trust. The certificate has signed itself. The web browser will then issue a warning, telling you that the web site certificate cannot be verified. Therefore, you should not use self-signed certificates for professional use, as your visitors will not trust your web site to be safe.

If you just need your website data encrypted and are not worried about web-browser warnings you can generate a self-signed SSL certificate for free.

Here is how you do it:

Click on Generate, view, upload or delete SSL Certificates.

crt

You will have to fill in the blank fields with your information details.

You will receive a self-signed certificate like in the image below:

selfcert

When you access a self-signed SSL website from your web-browser, you will get an self-signed SSL Certificate warning. You can simply safely click on Proceed anyway to still get to the website.

  • How to activate a SSL Cerificate.

It doesn’t matter if the SSL Certificate is bought or self-signed, the installation is done the same.

Click on Manage SSL sites

installssl

You have generated the Private Key, generated a CSR, now it’s time to activate the SSL Certificate for your website.

sslinstall

Click on Install Certificate.

You will then receive the confirmation message:

cpanel-ssl-install-success

This is how you generate, install and manage your SSL Certificates.

 

After installing your SSL Certificate you must redirect from HTTP to HTTPS and here is the tutorial on how to do it:

https://www.thcservers.com/blog/how-to-redirect-from-http-to-https-using-htaccess-file/

How do I move my account at THCServers with No Downtime?

Moving your hosting plan to another can be a complicated process. Follow the steps below to ensure that your transfer will be smooth and painless. Before we start this tutorial, please note that we will help you to transfer your entire site over free of charge!!!

Step 1: Sign Up with THCServers

The first step is to join our company. Do NOT cancel with your old hosting provider or tell them you will be canceling. Keep this a secret from your old host or they could prematurely terminate your site and cause downtime.

Step 2: Make a Backup of Your Files

At this point, you should have hosting accounts with two hosting providers. You will now migrate your entire site from the old host to us. Right before to login to your THCServers account and submit a ticket ( in this ticket you will have to include your cPanel login informations ) with your request, it is wisely to make a backup of your files.

Step 3: Wait for notifying

Right after you will submit the ticket, our tech team will start the transfer instantly. You will be notified by ticket  when the process is complete.

Step 4: Update the namservers:

After the migration is complete, you will have to go to the registrar, which is the company where you purchased your domain name to make the change. You will have to change your current nameservers with ours:
ns1.thcservers.com
ns2.thcservers.com
ns3.thcservers.com
ns4.thcservers.com
After the DNS propagation is complete, your site will be loading from the THCServers host.
If you bought your domain name from THCServers, we are more than happy to make the DNS changes for you.

 

Confused or worried about the migration process?! Contact us 24/7 via Live Chat or Ticket System and we’ll be glad to assist and explain you more about the transfer availability.

 

 

How to Set Up a URL Redirect in cPanel

Lets say you need to redirect visitors of your website from a source URL to a target URL

We are gonna show you how to create a URL redirect from your cPanel account, in this case with a paper_lantern theme.

You will login into your cPanel and find the Domains section.

In the Domains section click Redirect.

URL redirect1

Now you can select the type of redirect you want, be it temporary or permanent redirect.

A permanent redirect will be cached and search engines spiders will follow a permanent redirect.

A temporary redirect will remain until you disable it. Browsers do not cache a temporary redirect.

URL redirect 222

 

After entering the target “redirects to” as a full URL, including protocol (ex. “http://”) click the Wild Card Redirect. The Wild Card Redirect will redirect all files from a location to the same filename at the redirected location.

Click the Add button and you are done.

You have succesfully created a URL redirect.

What happens during a migration

There are two types of migration: direct migration and failover migration. Direct migration is when the old server is copied directly to the new server. Failover migration is when the old server has been taken offline and a temporary backup server has been running. The offline server will be copied to the new server.

 

 

Frequently asked questions:

Will my primary domain stay the same?

Yes, the domains will not change. Since the migration is basically a clone of the file and account structures all cPanels will retain their primary domain name.

Will addon domains stay in place?

Yes, addon domains will stay in place.

Will my IPs change

Any Dedicated IPs that are on cPanel accounts will stay the same. These are normally in place for SSLs.

Will my SSLs stay the same?

Yes. These should all remain the same during the migration so SSLs will not need to be rekeyed.

Will my databases stay the same?

Direct migration – The databases on the cPanel will be copied over exactly as they were on the original server. This means they will retain all data, naming conventions, usernames, permissions, etc.

Failover migration – The databases on the cPanel will be copied over exactly as they were on the original server. However the data that has been collected or changed on the failover server will not be copied over. It may need to be manually moved.

Will I lose any emails?

Direct migration – No. Any email that was on the old server will be copied over to the new server.

Failover migration – Any emails that were received and sent on the failover server will not be copied directly to the new server. The emails on the failover server will need to be manually moved.

 

 

What may change during the transfer:

Server name

If the server has a new name then all references to that name will need to be changed.

Shared IP Address

Though we will do our best not to change it, there is a low possibility the shared IP for your cPanel accounts could change. Any software refernecing the main IP directly will need to be changed to reference the new IP. This will be able to be seen in your cPanel once the copy has taken place.

Software you may need to change for the above issues

Here is a list of software you may need to inspect. These may have settings that use the server name or IP address.

  • Email clients (Outlook, MacMail, Gmail, etc)
  • Any builder program that connects to the server (DreamWeaver, FrontPage, iPage, Premium Website Builder)
  • FTP clients (FileZilla, Cyberduck, WSftp, etc)

 

How to Change Your Email Account Password in cPanel

So, you have created your email account in cPanel, but you need to now change it.  Whether you have simply forgot your password, or need to change it for security purposes this tutorial will show you how to change your email account password in cPanel in just a few steps.

STEP 1 – CLICK ON THE EMAIL ACCOUNTS ICON

The step is to access the email account admin screen by clicking on the Email accounts icon shown boxed in red in the image below under the mail section of cPanel.

how-to-change-your-email-account-password-in-cpanel

STEP 2 – SELECT THE “CHANGE PASSWORD” OPTION FOR YOUR CHOSEN EMAIL ACCOUNT

As you can see on the next screen there are various actions you can take, including “change password” as shown edged red in the screenshot below.  This is the option we need.

STEP 3 – Enter new password

Once you click the “change password” option, a new section will appear just underneath which allows you to enter a new password.

You will need to confirm the password by entering it a second time.  You will see a “strength” field which will show a number between 0 and 100 showing the complexity of your password.  The higher the strength the safer your password will be.  By default cPanel will not let you set a password with a strength lower than 40, but your web hosting provider may have changed this to require a stronger password.

We actually recommend using the Password Generator when changing your email password, as this is much more secure.  To use this click the “password generator” button next to the Strength field.  A pop-up box will appear as shown below:

To ensure you have recorded your new password cPanel will require you to confirm that you have copied this to a secure location.  To use the password just click the “use password” button and it will copy it to the relevant fields in the previous screen.  You can alter the way cPanel generates your email password in the advanced options by specifying the length of the password, as well as whether to use capital letters \ numbers.

STEP 3 – Click “Change Password”

Once you are happy with your chosen password, click the “Change Password” button as shown below:

You will then see confirmation that the password has been changed:

Resource Limits

Your site has a maximum amount of resources it can use. This makes sure no single account on a shared hosting server impacts other customers’ experiences. In the next table you will see the resource limits for every shared hosting plan:

Geek Nerd Freek
CPU 50% 60% 60%
Virtual Memory 1536Mb 3072Mb 4096Mb
Phisical Memory 1536Mb 3072Mb 4096Mb
Entry processes 40 50 60
Number of processes 20 50 100
I/O 1024Kb/s 2048Kb/s 2048Kb/s

Confused on what all these numbers mean? Don’t worry! Contact us 24/7 via Live Chat or Ticket System and we’ll be glad to assist you and find the right plan for you.

What is my security PIN number, and where can I find it?

In order to receive support from our live chat team, you’ll be required to provide them with your unique security PIN number to indentify you as our customer. If you’re having an issue locating your PIN, please follow these steps:

1. Login to your client area.

2. Click on the “Live Support Pin” button.

11

3. After that, click on “Generate a Security Pin”

12

4. Your 5 digit support PIN will be shown on the following page.

13

5. Copy and paste the provided PIN to your live chat representative for verification.

 

As always, our helpdesk team can be contacted 24/7 via Live chat or Ticket system, to help you in any problem you will encounter.

 

 

How to reset the password of your client area

If you have forgotten the password to login to your client area, then you will need follow to the below mentioned steps to reset the lost password:

1. Access this link: https://www.thcservers.com/portal/pwreset.php

2. Enter your email address which is registered with us

2

 

3. Click on Submit button.

3

In a moment, you will receive, you will receive an email having a verification link. Once you click on that link you will receive a new password at your registered email address.

 

Domain Transfer vs. Nameserver Change

How do domain names work?

Domain names are registered with a domain registrar. You pay the registrar a yearly fee to keep the domain active. Your registrar then points the domain name to a set of nameservers, and those nameservers in essence point your domain name to your hosting company.

You can register your domain with any domain registrar you would like, and you can still host that website with THC Servers as long as you ask your registrar to point your domain’s nameservers to THC Servers’s nameservers.

If your task is to point your domain to our servers, you will need to make sure your nameservers are updated accordingly. Transferring registrars is not a requirement to host your website here, anyway some users like to do this to keep everything under one company.

Do I need to make any changes with my domain?

If you registered your domain name through THC Servers, then your domain name should already be pointing to the correct nameservers. If you registered your domain name through another register and you wish to now host that domain name with us, you’ll need to update your domain’s nameservers.

How can I change my nameservers?

You can change your nameservers by logging into your current registrar account and replacing the existing nameservers with your host nameserver, in our case:

ns1.thcservers.com
ns2.thcservers.com
ns3.thcservers.com
ns4.thcservers.com

Once the nameservers are changed, it can take up to 24 hours for the changes to take full effect, depending on your Internet Service Provider.

Do I need to transfer my domain?

You can transfer your domain only if you wish that THC Servers to be the company that manages your domain.  There is a domain transfer fee and its cost depends on TLD. Also, right after the domain transfer we will extend the current expiration date for one year automatically.

Here you can check our offer for domains: https://www.thcservers.com/portal/domainchecker.php