How to Enable https (SSL) in WordPress

Do you want to enable SSL on your WordPress website? If you are looking for a complete tutorial with the help of which you can easily enable SSL on your WordPress website then you are at right place.

In this step by step tutorial guide I am going to explain you the various steps that you need to follow for installation and configuring SSL and https in your WordPress website.

Enable https(SSL) in WordPress

But before proceeding to the the steps of adding SSL and https in WordPress website let me elaborate the SSL term.

What is SSL?



Now a days we share and transfer our personal information at other websites on interet. Such type of transferring data connection should be secure to prevent the information from spammers and attackers.

Generally when SSL is installed on configured in website then the data transfer from your browser to server is secured and it is in encrypted format.

Encrypted data is difficult for hackers or spammers to decrypt. So it is rarely not possible to steal the information from the internet.

Most of the eCommence websites like Amanzon, Flipkart installed the SSL on their website to secure the transfer of data of their customers. This is because customers using their card on their websites to make payment. SSL secure the details of their card safety.

Why need to enable SSL and https on WordPress website?



If you are running a websute related to business or it is a eCommerece website then you must need to install SSL to secure the payment details of your clients.

In e-commerce website clients are making payment though various gateways embedded on the websites of merchants. Mainly all gateways require secure connection on the websites.

Also google boost the raking of site with https i.e SSL connection. So it is a simple thing that you can use to boost the ranking of your website in google search engine.

Moreover also note that installing and configuring SSL on WordPress website does not affect the traffic and performance of your website if you will do it as described in below steps.

Requirements of https or SSL on WordPress website:



If you want your website to show SSL certificate like: https://yourdomain/ then you can buy a SSL Certificate from our website.

Also if you have shared hosting plan then you also need to have a dedicated IP for your domain.

Please note most sites on the internet are hosted on a shared IP. Every shared hosting provider hosts 100s of sites on a shared IP. Since dedicated IPs are very expensive, so hosting providers don't assign dedicated IPs to each websites by default.

Right now most of our web hosting clients use these shared IPs.Since you want to install the SSL Certificate, you need to have a new dedicated IP assigned exclusively to your hosting account as SSL requires a website to have a dedicated IP.

Dedicated IPs are very expensive due to their limited availability. You can check the price of dedicated IP on our website or you can contact our chat support team for the dedicated IP’s prices.

Dedicated IP is an add-on for your hosting account and not an upgrade. So it will be billed separately plus Hosting Plan price.

Now let me explain and elaborate the various steps with the help of which you add SSL nd https in WOrdPress website.

Steps to add SSL and HTTPS in WordPress website:



Step 1) First of all you need to login to your WordPress Admin Panel.

Step 2) On the left side of the page, you will see the navigation bar. You need to navigate to Settings > General in navigation bar.

General in Wordress" style="border:1px solid #000">

Step 3) Now the General Settings page is displaying on your screen. In this page you need to make the below changes:

WordPress Address (URL): You need to replace http with https in this filed.
Site Address (URL): In this filed you also need to replace with http with https.

Edit WordPress and Site Address in WOrdPress

Step 4) Scroll down to button of the page and click on Save Changes button.

Save Changes WordPress

Congratulations! Now the SSL in your WordPress website has been enabled on your WordPress website. Now you also need to redirect http traffic to your https. You can easily do it by adding the code in the htaccess file.

You can easily redirect http traffic to https by following the below mentioned steps.

Steps to redirect http traffic to https in WordPress website:



Step 1) Login to your cPanel account

Step 2) Scroll down to File section and click on File Manager icon.

File Manager in cpanel

Step 3) Now you will be redirected to a page where list of all directories of your hosting account is displaying. You need to navigate to public_html folder by clicking on the public_html on the left side of directories.

Step 4) In public_html folder you need to select htaccess file and click on Edit button on the top of the menu bar.

Edit htaccess file in cpanel

Step 5) You can do this by adding the following code in your .htaccess file:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
</IfModule>


Note: Don’t forget to replace yoursite.com with your site URL.

Add SSL Redirect Code in .htaccess file

Step 6) Now you need to click on Save button to save the code in htaccess file.

Save htaccess file in cpanel

Now you have successfully redirect the http traffic to https by entering the code as instructed above.

You can now check your website after clearing cache and cookies of your browser.

And don't forget to give feedback via below comment box.