Methods to Redirect HTTP to HTTPS in WordPress

Redirect HTTP to HTTPS

HTTPS is a protocol for safe communication over a pc community which is broadly used on the Web. Increasingly WordPress homeowners are migrating from HTTP to HTTPS, primarily as a result of 5 following causes:

  1. Google introduced that websites utilizing HTTPS will get a slight rating think about Google search.
  2. You’ll be able to obtain quicker efficiency with the brand new HTTP/2 protocol which requires HTTPS because of browser help. And sure, Kinsta helps HTTP/2 on all servers.
  3. HTTPS is safer and your customer’s information is completely encrypted.
  4. HTTPS can construct belief by enabling the inexperienced padlock within the customer’s internet browser deal with bar.
  5. If somebody is visiting an internet site from HTTPS and going to an HTTP web site, the referral information is misplaced in Google Analytics. It often finally ends up lumped along with the “direct traffic.” If somebody goes from an HTTPS web site to a different HTTPS web site, the referral information continues to be handed. So by migrating from HTTP to HTTPS, you possibly can even have extra correct referral information.

Methods to Redirect HTTP to HTTPS in WordPress

There are a pair completely different choices you might have when selecting to redirect HTTP to HTTPS in WordPress.

If you happen to’re a Kinsta shopper, the best approach is to make use of our power HTTPS instrument (really useful). One other approach is to do it on the server stage, or you possibly can even do it with a free WordPress plugin. Word: Our examples all embrace a 301 redirect directive which is the right approach to implement it with regard to website positioning. Utilizing a unique kind of redirect might hurt your rankings.

Redirect HTTP to HTTPS on MyKinsta

No want to put in a plugin or attain out to our help staff, you possibly can simply redirect all your HTTP site visitors to HTTPS on MyKinsta. Merely log in to the MyKinsta dashboard, browse to your website, and click on on “Tools.” Subsequent, click on the “Enable” button below Power HTTPS.

Force HTTPS in MyKinsta

Power HTTPS on MyKinsta

You’ll be able to select to make use of your major area because the vacation spot or a requested various area. Then click on “Force HTTPS.”

Force HTTPS Options

Power HTTPS Choices

Word that for those who use third social gathering proxies or for those who had customized HTTPS guidelines arrange forcing HTTPS could result in some errors. If you happen to discover any points merely disable HTTPS forcing and get in touch with help.

Redirect HTTP to HTTPS in Nginx

In accordance with W3Techs, Nginx is the quickest rising internet server and holds a 30%+ market share as of 2017. On common, each minute one of many high 10 million web sites begins to make use of Nginx.

redirect http to https in nginx

In case your internet server is operating Nginx, you possibly can simply redirect all your HTTP site visitors to HTTPS by including the next code to your Nginx config file. That is the really useful technique for redirecting WordPress operating on Nginx.

server {
hear 80;
server_name area.com www.area.com;
return 301 https://area.com$request_uri;
}

We use Nginx for everybody right here at Kinsta. The nice information is that you just don’t have to fret about this. If you could add a redirect merely open up a fast help ticket and allow us to know which area you could be redirected. We then add it to the Nginx config for you.

Redirect HTTP to HTTPS in Apache

redirect http to https in apache

In case your internet server is operating Apache, you possibly can simply redirect all your HTTP site visitors to HTTPS by including the next code to your .htaccess file. That is the really useful technique for redirecting WordPress operating on Apache.

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

None of Kinsta’s servers are operating Apache.

Redirect HTTP to HTTPS with Actually Easy SSL Plugin

The third choice it’s a must to redirect from HTTP to HTTPS is to make use of the free WordPress Actually Easy SSL plugin.

We don’t suggest this technique as a everlasting resolution as a result of third social gathering plugins can all the time introduce one other layer of issues and compatibility points. Additionally, for an HTTPS migration, it is best to replace your HTTP URLs within the database, slightly than counting on a plugin. However this generally is a good quickly resolution.

really simple ssl plugin

Actually Easy SSL WordPress plugin

The plugin has 2+ million lively installs with a 4.9 out of 5-star score, and is actively saved to this point by the developer, Rogier Lankhorst. You’ll be able to obtain Actually Easy SSL from the WordPress repository or by looking for it inside your WordPress dashboard below “Add New” plugins. Here’s a checklist of what the plugin does:

  • All incoming HTTPS requests are redirected from HTTP to HTTPS. If potential with .htaccess, or else with JavaScript.
  • The WordPress website URL and residential URL are modified to HTTPS.
  • Your insecure content material is fastened by changing all HTTP:// URLs with HTTPS://, besides hyperlinks to different exterior domains. All the things is completed dynamically. Aside from the WordPress website URL and residential URL, no different database adjustments are made.

There aren’t actually any steps to utilizing this plugin, you merely set up and click on on “Go ahead, activate SSL” and also you’re good to go.


If you happen to loved this tutorial, then you definitely’ll love our help. All Kinsta’s internet hosting plans embrace 24/7 help from our veteran WordPress builders and engineers. Chat with the identical staff that backs our Fortune 500 shoppers. Try our plans

Leave a Reply

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