transfer site from http to https

Transfer your site from http to https using Htacess

i am in support of your action and will also suggest you to transfer all your visitors to https instead of allowing them to surf at http as it helps you to increase your as well as your security even it helps you to to higher your ranking as ssl site get higher ranking at google as compared to non-ssl sites. so not wasting your time lets go to first learn advantages of https and then go to our main topic redirect site to https from http using htacess.

Why move to HTTPS?

Google identifies several reasons to switch to HTTPS in their website migration guide:

Data sent using HTTPS is secured via Transport Layer Security protocol (TLS), which provides three key layers of protection:

  • Encryption. Encrypting the exchanged data to keep it secure from eavesdroppers. That means that while the user is browsing a website, nobody can “listen” to their conversations, track their activities across multiple pages or steal their information.
  • Data integrity. Data cannot be modified or corrupted during transfer, intentionally or otherwise, without being detected.
  • Authentication. Proves that your users communicate with the intended website. It protects against man-in-the-middle attacks and builds user trust, which translates into other business benefits.

There are other benefits, though, including the Google ranking boost previously mentioned.

tranfer site from http to https

Making the switch to HTTPS also helps with the loss of referral data that happens when the referral value in the header is dropped when switching from a secure website to an unsecured website. Analytics programs attribute traffic without the referral value as direct, which accounts for a large portion of what is called “dark traffic.”

The switch also prevents a lot of bad things, such as when AT&T was injecting ads into their hotspots. They would not have been able to inject these ads on a website with HTTPS.

now our main topic that is Transfer your site from http to https and for this we will be using htacess to do that just add the code below to your htacess file and it will automatically redirect site to https from http


RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

just place this htacess code by adding it to your site existing htacess code or download it from button below and save it on your serve

direction to save code

extract the code using winrar or any other software(if code is downloaded else just add code in htacess file ) then open online file manager and select site name and save the file at that location


Leave a Reply

Notify of