How to properly move WordPress http to HTTPS

Https has lot more benifit from http these are given below in short way

1) if your site have any payment gateway installed it should be htttps as people like to pay where the trust button installed.
2) As per google https site will get a little advatage in seo rather than http.
3) https is secure that knows by most of the people even web stumblers.
4) A trust icon added in the browser if https added or forced to booted but if not it will give a non trustable icon which simply annoying to users/visitors.

Last year Google announced a plan to improve overall web security by encouraging website owners to make the switch from HTTP to HTTPS. As part of this plan, their popular Chrome web browser would mark all websites without a SSL certificate as “Not Secure” starting July 2018.
As part of the announcement, Google also said that websites with SSL will also see SEO benefits and higher rankings. Since last year, a large number of websites have switched from HTTP to HTTPS.

Google has been slowly rolling out the “Not Secure” warning in Chrome. For example, if someone visits a HTTP website using the incognito window, it will be marked as Not Secure. If someone visits a HTTP website on regular mode and tries to fill out a contact form or another form, then the website will be marked as insecure.

When your readers and customers see this notice, it gives them a bad impression for your business.This is why all websites need to move form HTTP to HTTPS and install SSL immediately.Not to mention, if you want to accept payments online on your eCommerce website, then you need SSL.Most payment companies like Stripe, PayPal Pro, Authorize.net, etc will require you to have a secure connection before accepting payments.

Are you looking to move WordPress from HTTP to HTTPS and install an SSL certificate on your website? We have been getting a lot of requests on this topic because Google announced that Chrome browser will start marking all websites without SSL as insecure starting July 2018. In this article, we will show you how to properly move WordPress from HTTP to HTTPs by adding a SSL certificate.

Don’t worry, if you have no idea what SSL or HTTPS is. We’re going to explain that as well.

What is HTTPS?

HTTPS or Secure HTTP is an encryption method that secures the connection between users’ browser and your server. This makes it harder for hackers to eavesdrop on the connection.

Every day we share our personal information with different websites whether it’s making a purchase or simply logging in.

In order to protect the data transfer, a secure connection needs to be created.

That’s when SSL and HTTPS come in.

Each site is issued a unique SSL certificate for identification purposes. If a server is pretending to be on HTTPS, and its certificate doesn’t match, then most modern browsers will warn the user from connecting to the website.

Process to do the wordpress site to https enabled.

befoe doing all of that be sure you have already added https in wp-admin’s general settings panel.

Setup SSL/HTTPS in WordPress Manually

This method requires you to troubleshoot issues manually and edit WordPress files. However this is a permanent and more performance optimized solution. This is what we’re using on WPBeginner.

If you find this method difficult, then you can hire a WordPress developer or use the first method instead.

As part of this method, you may need to edit WordPress theme and code files. If you haven’t done this before, then see our guide on how to copy and paste code snippets in WordPress.

First, you need to visit Settings » General page. From here you need to update your WordPress and site URL address fields by replacing http with https.

#1: Using wp-config.php file to Force SSL (HTTPS) in WordPress Admin and Login

define(‘FORCE_SSL_ADMIN’, true);
define(‘FORCE_SSL_LOGIN’, true);
instantly it will activate the wp-admin to https but the website might be not.for website you have to follow the below process.

#1: Using your .htaccess file to force HTTPS on WordPress

The .htaccess file is a core WordPress file and governs the way your website interacts with the server. It is located in the root of your WordPress installation. To force HTTPS on WordPress through .htaccess go ahead and edit it. Place the following code just before # END WordPress line.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

some time it works some time it not.if not working properly then follow the next steps.

#3.Using plugins

Best proven and shortcut method for noobs or layman and it work most of the time.Install a plugins named as Really Simple SSL.Install that plugin activate the ssl and boom you get the desired output finally.Check it out.Some more plugins also exist you can try those also.

 

#4: Using functions.php file to force SSL (HTTPS)

Another way to force HTTPS on your WordPress website is to use template_redirect WordPress action to redirect all HTTP pages to HTTPS. Go ahead and edit your child theme’s functions.php file and add the following code:

add_action(‘template_redirect’, ‘webroom_force_ssl’);
function webroom_force_ssl(){
if (!is_ssl()) {
wp_redirect(‘https://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’], 301);
exit();
}
}

add that code in the current active theme’s functions.php file.

 

 

Leave a Reply

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

CommentLuv badge
Show Buttons
Hide Buttons
error: Content is protected !!