SSL certificates are important for every site nowadays. If there are login passwords and user registration on your site, the importance of SSL gets a security necessity. SSL certificates help to encrypt your communication between browser and web server. If you are not using SSL certificate you are sending your passwords in plain text over the internet.  Anyone at ISP, your network, or man in the middle if trying to sniff your traffic can get the unencrypted login password.

At Tezhost we provide SSL certificates to all the on our shared web hosting server free of cost. SSL is installed automatically for all newly created websites within a few hours. To use SSL you just need to change all the links in your website to https add a redirect from HTTP to https in .htaccess.

Most of the sites and scripts like WordPress when installed are on HTTP. To use the SSL certificate you will need to change your site links to https. So if you are using WordPress, you can do that easily from wp-admin.

How to change website links from HTTP to HTTPS in WordPress?

  • Login to your WordPress dashboard and navigate to Settings > General.
  • Ensure that the WordPress Address (URL) and Site Address (URL) are https. If not, add S after HTTP to make https and save it.

The next step is to add a redirector in the hidden file .htaccess. .htaccess is available in your public_html. To make it visible you can do it form the cPanel file manager settings. Now you need to edit it and add the below script in the start of the file.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?WEBSITE\.com
RewriteRule ^(.*)$$1 [R,L]

Now that is all, your site is now live using the SSL certificate. You will be able to see the green lock for SSL security in your browser.

If you are getting a warning on https it means that your site has links that are not on https. You can see in this site the user has redirected his traffic to https but his website does not have all the links with HTTP. To fix this you will need to change the links to https manually from code or you may need professional developer help to fix it.

For more Info: web Hosting in Pakistan