How To Redirect Your WordPress Blog Http To Https

How To Redirect Your WordPress Blog Http To Https

If you are doing blogging then it is very important for you to know how to redirect your WordPress blog to https to https. Do we have to use any plugin for this or do we have to add some code to our website.

Actually in both these ways you can redirect your WordPress blog http to https. Obviously, if you have come to this post then you are a new blogger. And new bloggers do not know how to redirect their blog from http to https.


There is nothing to be ashamed of in this, all bloggers understand things slowly like this. But the first thing to understand here is that why it is necessary to redirect the website HTTP to HTTPS? Even if we do not do this, our website opens properly.

How To Redirect Your WordPress Blog Http To Https

This is where people make the biggest mistake. Nowadays it is very important to secure your blog. There is a clear message from Google that blogs that will not be completely secure, they will not trust them much. So it simply means that it will affect your SEO.


Due to which your ranking will be down and traffic will be reduced. That’s why it is important for you to know how to redirect your blog to Http To Https. So that you can avoid many types of pitfalls.

Leave Google, nowadays visitors have also become so intelligent that they do not like to stay for long on an unsecured blog. Those people also trust on the same website, on whose opening they see Closed Green or Black Lock.


That is why it is very important to secure the blog. To move the blog to Secure or Https, you have to enable SSL on it. Now whether you want to use SSL with Free or Paid. By the way, if your blog is new then you can use Free SSL.

At the very beginning, when you buy hosting for your new blog, then definitely check whether they are giving you the facility of Free SSL or not. If you are giving then it is a very good thing otherwise there are many such websites with the help of which you can install SSL (Security Sockets Layer) on your blog.

After activating SSL on your blog, your first thing is to move the blog to Https. You find out how WordPress Blog is redirected to Http To Https.

If your blog or any post is opening correctly from both http and https. But even after opening from http, there is no redirect to https, so Google understands that these two are different blogs. Therefore, the problem of duplicate content can often be faced.

This is the reason why it is very important to move Blog from Http to Https. After redirecting to Https, all your traffic starts coming on Secured Version Https which is very good for Search Engine Optimization.

In this way, all your earlier posts that were indexed in Google with Http will be redirected to Https. We get to hear from many people that after redirecting from Http to Https, they had to face many problems.

Like either the loading time of their website became too much or on opening the blog, the error of “Website Not Working” started showing. Actually this happens due to adding the wrong code.

Most of the old blogs that tell Redirect Code may not actually work equally well on all blogs. That is why they have to face these problems. But here we will tell you the http to https redirect code, it will work perfectly.

How to Redirect Blog to Http To Https

As we told you that we will tell you 2 ways to redirect your blog. First through Code and second through Plugin. So let’s first know how to redirect Blog to Http then Https through code.

The code that we are going to tell you here, you have to add it to your .htaccess file. Guess your job is done. So let us know which is the right Http to Https Redirection Code for WordPress Blog.

Code Paste .htaccess File


RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^RNkhabri\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.RNkhabri\.com$
RewriteRule ^(.*)$ https://RNkhabri.com/$1 [R,L]

So you have to add this code to your .htaccess file. As soon as you add this code, your blog will be successfully redirected to Https. And yes, in this code where our website “RNkhabri” is written, remove it and add your own domain name.

So we have given you step by step complete information about how to redirect your blog to Http to Https. But there are also some new bloggers who do not know where this .htaccess file is and how to add code to it.

So let us also give you this information. First of all login to your WordPress Dashboard. After that all the options are there in the left side like Dashboard, Media, Plugins, Appearance and Settings etc. On the same side you will see the option of SEO at the bottom.

This option is visible only when you are using Yoast SEO’s plugin. First of all you have to take Cursor on SEO Option, as soon as you do this a popup will appear in which there will be an option by doing Tools, you have to click on it.

As soon as you click on Tools, you will see 3-4 options above in the page that will open in front of you like Import and Export, File Editor and Bulk Editor etc. As you can also see in the screenshot below.

How To Redirect Your WordPress Blog Http To Https

Now you have to click on “File Editor” option out of these. As soon as a new page will open in front of you, your Robots.txt file will appear above and .htaccess file below it. Now you have to copy this code and paste it at the beginning of your .htaccess file.

Get your work done, after pasting the code, don’t forget to click on the “Save Changes To .Htaccess File” option below. Now even if you open your website or any post without using Https, then it will automatically be redirected to Https.

Now it comes to redirecting the blog http to https through the plugin. So first you install the plugin named “Redirection” and activate it. Now you can easily move your blog to https by going to its setting.

In this, you have to write the address of your website with Http instead of Old URL and add https version instead of Targeted URL. Now whenever someone opens your website, it will open with Https only. But we recommend that you use Code instead of Plugin.

So this was our article How To Redirect Your WordPress Blog Http To Https – Redirection Code to Move Blog from Http to https. Hope your problem got resolved.

If you still have any question in your mind, then you can ask by commenting in the comment box. Do like and share this article. To connect with us, like our Facebook page and subscribe to us. Thank you.

www.rnkhabri.com | Get latest news 2023 & live updates from India, live India news headlines, breaking news India. Business, Lifestyle. World, Technology, Sports, Internet, Hosting, Blogging, Career, Astrology, Job, Entertainment News Read all latest India news & top news on India Today News.