How to redirect http to https via wordpress/htaccess

Published by Paidboom on

redirect http to https

If you’ve got a secure certificate (SSL) on your hosting, you’ll be able to redirect http to https. to the secured (HTTPS) version of your website to secure their data.

as you know PAIDBOOM offers Free SSL Certificate with every plan, It doesn’t require you to pay again to issue SSL certificate nor to redirect http to https.

There are 2 easy methods to redirect http to https:

  • WordPress Plugin 
  • htaccess 

Make sure, you have issued the SSL Certificate onto your domain name in PaidBoom Cpanel.

Read this: How to install SSL Certificate on PaidBoom Cpanel

let begin with the wordpress plugin

  • How to redirect http to https in wordpress 

the one simple way which can redirect your wordpress website from http to https. Really Simple SSL plugin automatically detects your settings and configures your website to run over https.

THREE SIMPLE STEPS FOR SETUP:
  • Get an SSL certificate (PaidBoom offers free already).
  • Activate this plugin
  • Enable SSL with one click

Install Really simple SSL Plugin and activate it. It’s done

  • How to redirect http to https via htaccess 

you might ask, what If I use custom CMS, static website. yes, that’s the right question.

the answer is, Yes. you can redirect http to https without any plugin as well

Login to your Cpanel >> files manager >> public_html >> .htaccess file >> edit >> add below code into your htaccess file >> save changes 

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

 

make sure, you have changed MySiteName to your domain name.

If there is no htaccess file on your public_html directory. Please follow the guide below

Login to your Cpanel >> files manager >> public_html >> there you will see setting icon top of corner >> click on it >> check-in show hidden file >> save settings

 

If you have queries, Please comment below


Paidboom

Host your sites faster than an exploding bullet

2 Comments

Hriday Kundu · April 21, 2019 at 7:09 am

still i can not redirect my visitor http to https

    Paidboom · April 21, 2019 at 7:36 am

    What is the error Are you getting?

Leave a Reply

Your email address will not be published. Required fields are marked *