How to Move WordPress from HTTP to HTTPS for Free

(Last Updated On: December 1, 2017)

After reading this post you will learn the free easiest ways to move your WordPress site from http to https in less than 5 minutes with out spending a penny, no SSL Certificate is needed, no Cloudflare account needed (note that Cloud flare SSL is weak), this will not be a weak or positive SSL which some panel offers for free. It is the best you can get and among the most secured on the web.

Google made it clear in 2014 that site with https will have better search privilege over site with just http read ithere

Most webmasters, especially bloggers took Google statement for a joke, but today we can experience a great different between http and https in terms of Google’s search result.

For most bloggers, most especially new bloggers, one of the best way to improve their SEO is to migrate their blog from http to https and this has proven to be very positive. It is very easy to migrate.

You may want to read the short term change NaijaTechZone experienced after moving  from http to https click here to read

Https do not just give your website a better search reputation, it also keep your site content and users info more secured, as it makes it very difficult for hackers to gain access to.

If you have an eCommerce or any other kind of site where users make purchases by using their credit card details, it is mandatory you run such site on https, this will prevent third party hackers as well as scammers to gain access your customers information.

Congratulations if you are running your eCommerce with WordPress, this step will also work perfect for you – keeping your online store secured as well as boosting you customers confidence while shopping on you site.

Without saying so much about to importance of https lets learn how to move our WordPress blog from http to https for free.

How to Migrate WordPress from HTTP to HTTPS for Free

Step 1

Secure Your Admin Dashboard

To secure your admin dashboard go to your  Control Panel click on File Manager


Open your website location by clicking on public_html search for wp-config.php file and add the code below to your public_html script

Step 2

Use relative URL’s

The relative URL’s around your contents will be a great way to avoid issues when moving your WordPress site from http to https. Simply open your phpMyAdmin from your control panel

Next, click on your WordPress database inside the phpMyAdmin. On the top Tab click on SQL. Take very good note of the database prefix, it may be something like wp_.

Enter the SQL code below to make all your site images relative URL’s.

Note: if your WordPress table prefix is not wp_  you will have to edit the code by changing wp_post to your-table-prefix_post this you will have to do in all script with table prefix during the process.

You will also need to run this next code below just in case if there are any URL’s with single quotations for src files.

Then finally enter this last code below to change iFrames to secure.

Step 3

Set to https in General Settings

Log into your WordPress Admin dashboard and click on Settings in the menu on the right menu, select General and there change your site URL to your website in the 2 places to

Step 4

Change .htaccess file

On this final step enter the code below at the top of your .htaccess file. This code if entered correctly, will force your entire website to use https://

Note: the .htaccess file can be find in your cPanel file manager, if not visible then you will have to enable view dot file  depending on your cPanel to make it visible.

And that is it all, you have successfully moved your WordPress site from http://to https://

Its pretty easy! Hope so

If this will be complicated to you then Hire Me to do it for you for just a penny.


Ikeji Alvan

Ikeji Ebuka is a web developer with good knowledge of PHP, MySQL, HTML and CSS. Also a WordPress expert, who can customize all kinds of web applications with the platform, excellent in using the Magento and SMF framework, and have full passion for technology.

Related Articles

Leave a Reply

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

error: !!