Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Properly Move WordPress from HTTP to HTTPS (Beginner’s Guide)

Beginners often ask us about moving their websites to SSL or HTTPS. The terms may sound too technical, but it is actually very easy to do.

HTTPS in a website’s URL means that it uses a secure data transfer protocol by installing an SSL certificate. This is important because most modern browsers show warnings for websites that do not use HTTPS.

Luckily, most reliable hosting companies and WordPress make it very easy to secure your website.

In this article, we will show you how to move your WordPress from HTTP to HTTPS by adding an SSL certificate. Don’t worry if you don’t know what SSL or HTTPS is. We will explain that as well.

Moving WordPress from HTTP to HTTPS / SSL

Here is a quick overview of the topics we will cover in this article:

What Is HTTPS?

HTTPS, or Secure HTTP, is a method of encryption that secures the connection between a user’s browser and your server. This added security makes it much more difficult for hackers to intercept the data being transferred.

Every day, people share personal details with websites, whether they are making purchases or simply logging in. We’ve seen firsthand how crucial it is to protect this type of data exchange.

To ensure data safety, a secure connection needs to be established.

This is where SSL and HTTPS come into play.

Each website receives a unique SSL certificate for identification. If a server tries to use HTTPS without a valid certificate or if the certificate doesn’t match, most modern browsers will alert users and advise them not to proceed.

Connection not private error in Google Chrome

Now, you might wonder why moving your WordPress site from HTTP to HTTPS is necessary, especially if it’s a simple blog or small business website that doesn’t process payments.

Why Do You Need HTTPS and SSL?

Back in 2018, Google announced an initiative to boost web security by urging site owners to switch from HTTP to HTTPS. To support this move, their Chrome browser started marking all websites without an SSL certificate as “Not Secure.”

Connection not secure

Google also mentioned that sites with SSL would receive SEO advantages and could achieve higher search rankings than non-secure sites. This announcement pushed many site owners to switch to HTTPS.

Once the “Not Secure” warning rolled out, Chrome began flagging HTTP sites. For instance, visiting an HTTP site in incognito mode or filling out a contact form on an HTTP site triggers the warning, marking it as insecure.

When visitors see this warning, it can leave a negative impression of your site or business.

This is why all websites need to transition to HTTPS and install SSL as soon as possible.

Moreover, SSL is a must if you want to accept online payments on your eCommerce site.

Payment providers like Stripe, PayPal Pro, and Authorize.net require a secure payment connection.

We ensure our own sites use SSL, including WPBeginner, OptinMonster, WPForms, and MonsterInsights.

Requirements for Using HTTPS/SSL on a WordPress Site

The requirements for using SSL in WordPress are not very high. All you need to do is purchase an SSL certificate, and you might already have it for free.

The best WordPress hosting companies are offering free SSL certificates for all their users:

For more details, see our guide on how to get a free SSL certificate for your WordPress website.

If your hosting company does not offer a free SSL certificate, you’ll need to purchase one.

We recommend Domain.com because it offers the best SSL deal for regular and wildcard SSL certificates.

By purchasing an SSL certificate from them, you also get a TrustLogo site seal for your website. Each SSL certificate comes with a minimum security warranty of $10,000. Pricing starts at $33 annually, and SSL certificates are renewed automatically.

Once you have purchased an SSL certificate, you’ll need to ask your hosting provider to install it for you.

Need Help Setting Up SSL and Moving to HTTPS?

If you don’t have time to set up SSL, our Premium WordPress Support service is here to help! We can handle the entire process for you, ensuring your site is secure and ready for visitors.

  • One-time fee
  • Fast turnaround times
  • Available on-demand 24/7

You can rest easy knowing your site is in expert hands. Contact us today for seamless SSL installation and HTTPS migration!

Setting Up WordPress to Use SSL and HTTPS

After enabling an SSL certificate for your domain name, you will need to set up WordPress to use SSL and HTTP protocols on your website.

We will show you two methods for doing that, and you can choose the one that best suits your needs.

Method 1: Setup SSL/HTTPS in WordPress Using a Plugin

This method is easier and is recommended for beginners.

First, you need to install and activate the Really Simple SSL plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Settings » SSL page. The plugin will automatically detect your SSL certificate and set up your WordPress site to use HTTPS.

SSL enabled on a WordPress website

The plugin will take care of everything, including the mixed content errors. Here’s what the plugin does behind the scenes:

  • Check SSL certificate
  • Set WordPress to use https in URLs
  • Set up redirects from HTTP to HTTPS
  • Look for URLs in your content that are still loading from insecure HTTP sources and attempt to fix them.

Note: The plugin attempts to fix mixed content errors by using an output buffering technique. This can have a negative performance impact because it replaces content on the site as the page is loaded. This impact is only seen on the first page load, and it should be minimal if you are using a caching plugin.

While the plugin says you can keep SSL and safely deactivate the plugin, it’s not 100% true. You will have to leave the plugin active at all times because deactivating the plugin will bring back mixed content errors. See our Really Simple SSL review for more details.

Method 2: Set Up SSL/HTTPS in WordPress Manually

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

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

You may need to edit the WordPress theme and code files as part of this method. If you haven’t done this before, see our guide on copying and pasting code snippets in WordPress.

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

Update WordPress URLs

Don’t forget to click on the ‘Save changes’ button to store your settings.

Once the settings are saved, WordPress will log you out, and you will be asked to re-login.

Next, you need to set up WordPress redirects from HTTP to HTTPS by adding the following code to your .htaccess file:

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

If you are on NGINX servers, then you will need to add the following code to redirect from HTTP to HTTPS in your configuration file:

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

Don’t forget to replace example.com with your domain name.

By following these steps, you will avoid the WordPress HTTPS not working error because WordPress will now load your entire website using HTTPS.

If you want to force SSL and HTTPS on your WordPress admin area or login pages, you need to configure SSL in the wp-config.php file.

Add the following code above the “That’s all, stop editing!” line in your wp-config.php file:

define('FORCE_SSL_ADMIN', true);

This line allows WordPress to force SSL / HTTPs in the WordPress admin area. It also works on WordPress multisite networks.

Once you do this, your website is fully set up to use SSL / HTTPS, but you will still encounter mixed content errors.

These errors are caused by sources (images, scripts, or stylesheets) still loading using the insecure HTTP protocol in the URLs. If that is the case, then you will not be able to see a secure padlock icon in your website’s address bar.

Not secure

Many modern browsers will automatically block unsafe scripts and resources.

You may see a padlock icon but with a notification about it in your browser’s address bar.

Insecure content blocked

You can find out which content is served through insecure protocol by using the Inspect tool.

The mixed content error will be displayed as a warning in the console with details for each mixed content item.

Mixed content errors displayed in browser console

You will notice that most URLs are images, iframes, and image galleries, while some are scripts and stylesheets loaded by your WordPress plugins and themes.

Fixing Mixed Content in WordPress Database

Most of the incorrect URLs will be images, files, embeds, and other data stored in your WordPress database. Let’s fix them first.

It would be best if you found all mentions of your old website URL in the database that start with HTTP and replaced them with your new website URL that starts with HTTPS.

You can easily do this by installing and activating the Search & Replace Everything plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Tools » WP Search & Replace page. Under the ‘Search’ field, you need to add your website URL with http. After that, add your website URL with https under the ‘Replace’ field.

Add URLs into the search and replace fields

Below that, you will see all your WordPress database tables.

You need to select all of them to run a thorough check.

Select all tables in Search & Replace Everything

Then, click the ‘Preview Search & Replace’ button to see all of the changes the plugin will make.

Lastly, click the ‘Replace All’ button.

Click the Replace All button

The plugin will now search your WordPress database for the URLs starting with http and replace them with secure https URLs. It may take a while, depending on your WordPress database size.

Fixing Mixed Content Errors in WordPress Theme

Another common culprit causing mixed content errors is your WordPress theme. Any decent WordPress theme following WordPress coding standards will not cause this issue.

First, you will need to use your browser’s Inspect tool to find the resources and where they are loading from.

Using inspect tool to find mixed content error

After that, you will need to find them in your WordPress theme and replace them with https. This will be a little difficult for most beginners, as you will not be able to see which theme files contain these URLs.

Fixing Mixed Content Errors Caused by Plugins

Some mixed content resources will be loaded by WordPress plugins. Any WordPress plugin following WordPress coding standards will not cause mixed content errors.

We don’t recommend editing WordPress plugin files. Instead, you should contact the plugin author and let them know. If they do not respond or are unable to fix it, you should find a suitable alternative.

Note: If, for some reason, you’re still encountering a mixed content error, we recommend temporarily using the Really Simple SSL plugin so your users are not impacted while you fix the issue on a staging website or hire a developer.

Submit Your HTTPS Site to Google Search Console

Search engines like Google consider https and http to be two different websites. To avoid any SEO issues, you will need to let Google know that your website has moved.

To do that, you just need to go to your Google Search Console account and click on the ‘Add property’ button.

Add property

This will bring up a popup where you need to add your website’s new https address.

There are two methods for site verification: domain name or URL prefix. We recommend the URL prefix method because it is more flexible.

Add website URL in Google Search Console

After that, Google will ask you to verify ownership of your website.

There are several ways to do that. Select any method, and you will get instructions to verify your site. We recommend using the HTML tag method.

HTML tag method to verify your site

You will now see an HTML code snippet that you need to add to the head section of your WordPress website.

Add Search Console Verification Code using All in One SEO

First, install and activate the All in One SEO for WordPress plugin. For more details, see our tutorial on how to install a WordPress plugin.

Note: There is also a free version of All in One SEO that you can try.

Upon activation, go to the All in One SEO » General Settings page and click on Google Search Console.

Add Google Search Console verification code in All in One SEO

Below that, you need to add the verification code you copied earlier from the Google Search Console website.

Don’t forget to click on the ‘Save Changes’ button to store your settings.

Next, switch back to the Google Search Console tab and click the ‘Verify’ button.

Verify ownership

Once your site is verified, Google will show your search console reports here.

You also need to ensure that both the https and http versions are added to your Search Console.

This tells Google that you want the https version of your website to be treated as the primary version. Combined with the 301 redirects set up earlier, Google will transfer your search rankings to the https version of your website, and you will most likely see improvements in your search rankings.

Bonus Resources

The following are a few additional resources that can help you fix common WordPress problems on your own and learn more about WordPress:

Video Tutorial

Subscribe to WPBeginner

We hope this article helped you add HTTPS and SSL in WordPress. You may also want to see our ultimate WordPress security guide with step-by-step instructions to keep your WordPress site secure or how to renew your SSL certificate.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

407 CommentsLeave a Reply

  1. Yasir

    Is this plugin is secured.

    • WPBeginner Support

      Yes, the plugin should currently be secured.

      Admin

  2. ammar

    Hi, if i’m using the 1st method, do I need to follow the Submit my HTTPS Site to Google Search Console step also after that?

    TQ

    • WPBeginner Support

      Yes, you would still want to follow that step

      Admin

  3. Swen

    I installed the Really Simple SSL plugin, which states that you should manually replace every http:// in all .css and .js files to //. That doesn’t sound really simple to me. As a beginner I set up a simple website with a couple of pictures. Is it common that http:// statements are in these files?

    • WPBeginner Support

      Normally those links are not common so it shouldn’t be something to worry about.

      Admin

  4. Lucas

    Hi,
    When adding the code to .htaccess, i get a “too many redirects” error. I tryed adding to the existing code above, below, and also erasing the existing code and using only the new. All three option get too many redirects.

    Is there something I should change there? Thanks in advance for your help!

  5. Sotir Sotirov

    I’ve tried using the plugin but when I do the website becomes not accessible. I’ve tried the manual approach but once I’ve changed the addresses in WP settings the site becomes not accessible again.

    • WPBeginner Support

      You would want to reach out to your hosting provider to ensure that your SSL certificate is connected to your domain correctly and they should be able to help :)

      Admin

  6. Mike Ashworth

    I am about to make the change to SSL and will be following the guidance in te article, initially using the really simple ssl plugin. Before i begin i have a quick question.

    If I use the really simple ssl plugin, which takes care of everything, i can leave the general settings in wordpress for wordpress address and site address as http rather than change to https as the plugin will be taking care of it?

    • WPBeginner Support

      Correct :)

      Admin

      • Mike Ashworth

        Thanks for confirming. I have one other rquestion.

        having just activated lets encrypt ssl on siteground for a website, i am asked wther i want to switch the following on or leave it off.

        HTTPS Enforce – Forces your site to work entirely over an encrypted HTTPS connection. The redirect is performed on server level and works for any website.

        Do i leave this off as the really simple ssl plugin will take care of this as well?

        • WPBeginner Support

          Yes, you can leave that off, you would only want to use that should there be any issues with the plugin or Google finding http links

        • Mike Ashworth

          Thanks for your advice. WP Beginner is such an awesome website. Keep up the great work!

  7. stephan

    I want to thank you a lot. I have been looking for the errors over 12hours and get it done with better replace plugins. Thanks a lot dear.

    • WPBeginner Support

      Glad our recommendation could help you :)

      Admin

  8. Arlina

    Does adding in the plugin of SSL slow down my blog speed performance?

    • WPBeginner Support

      It shouldn’t slow your site down

      Admin

  9. Peter Wilson

    Can someone tell me, do I replace the contents on my.htaccess. file with the suggested code or do I place it and the beginning/end of the eisting entry.

    • WPBeginner Support

      You would add it at the end of the current code in your htaccess file.

      Admin

      • Peter Wilson

        Thanks for the quick reply. So, would that be after the existing and before the # END WordPress, or does it go after the .

        • WPBeginner Support

          That should not matter, it may be a good idea to do it after should you need to remove the code in the future :)

  10. Shivanandana

    Really awesome guide. Thank you so much! Thanks again for this detailed post!

    • WPBeginner Support

      Glad you like our content :)

      Admin

  11. Håkan

    Great content, helped me alot!

    • WPBeginner Support

      Thank you, glad our content was helpful :)

      Admin

  12. Harsha

    Very useful guide, thank you very much!

    • WPBeginner Support

      You’re welcome, glad our article was helpful :)

      Admin

  13. Jan-Peter Molenaar

    Thanks a lot!! Valuable content :)

    • WPBeginner Support

      You’re welcome, glad our content is helpful :)

      Admin

  14. Greg

    This article was so helpful. Thank you so much! Made it very easy.

    • WPBeginner Support

      You’re welcome, glad our article was helpful :)

      Admin

  15. Nel

    Most helpful guide ever. Thank you for this.

    • WPBeginner Support

      You’re welcome :)

      Admin

  16. Jessica Quadra

    This was so helpful and each step worked perfectly. Thank you!!

    • WPBeginner Support

      You’re welcome, glad our guide could help :)

      Admin

  17. Hassen Loukil

    Hi!
    Thanks for the article!
    What about google analytics? Same thing as Google search console or not?

    • WPBeginner Support

      For Google Analytics you should be able to update to https under your property settings

      Admin

  18. Arif Ahmed

    When I enable “WordPress 301 redirection to SSL” option from “Really Simple SSL Plugin” it works fine, but it removes query parameters. For example, when I get users from Adwords campaign it strips off gclid parameters.

    Please guide

    • WPBeginner Support

      You would want to reach out to Really Simple SSL’s support to see if there is an option for query strings.

      Admin

  19. Oswald Porter

    Thanks for your helpful article.
    The manual SSL/HTTPS set up seems be be working for the main site.
    However the mixed content error (images) still appears after using the Better Search Replace plug-in.
    At Media Library, images appear with ‘https’, but not at the site’s each post
    Indeed, at all posts, when I right-click on the post image > ‘Copy image address’, it shows:
    http://
    Ideas? Thanks in advance.

  20. Kathy

    Hi,

    I used this tutorial on many sites and it works like a charm. Thanks for that.

    Do you know if I can also use it to update my multisite(s). Or are additional steps needed?

    • WPBeginner Support

      Depending on how your multisite is set up there are normally more steps involved. If you reach out to your hosting provider they can normally help

      Admin

  21. Ralph

    Thanks, very nice tutorial.

    • WPBeginner Support

      Thanks, glad you liked our guide :)

      Admin

  22. Oz

    Fantastic and straightforward!

    What steps do we need to take to make sure our social share count (e.g., Facebook, Twitter) are still available?

    • WPBeginner Support

      You could try 301 redirecting the http articles to https but unless I hear otherwise, social media sites see the two as different links so you are likely going to lose your shares unless they have added a method to update your share counts.

      Admin

  23. Ahsan

    I used cloudflare for free SSL but my traffic has dropped 25%. Is this due to cloudflare?

    • WPBeginner Support

      There are multiple possible reasons for a change in traffic so it is hard to say if that is the only reason or if there were other reasons for a drop in traffic.

      Admin

  24. Shawn

    Thank you for such a great piece of content.
    It seems like using the Really Simple SSL plugin is way easier than changing codes and scripts on my own.

    My question – what if the plugin did not get updated in the future? Is this going to cause a problem for our urls?

    And, after installing the SSL from my web host, all I need to do is to activate Really Simple SSL plugin and everything will be redirected to https?

    Shawn

    • WPBeginner Support

      It would depend on what changes in WordPress’ core code and how long it has not been updated for the possible issues. The plugin should automatically update your content that it is able to use HTTPS without you needing to modify anything on your end if you wanted.

      Admin

  25. Nathaniel

    Just wanted to say thank you. I was not looking forward to doing this, but you’re guide made it easy and quick. Thanks!!!

    • WPBeginner Support

      Glad our guide could help :)

      Admin

  26. Sheri Ellis

    I made the mistake of following your manual instructions before our SSL cert had been installed. All I did was edit the general settings for the URL to https. And now the site is hosed. I’ve been editing every PHP file to include:
    define( ‘WP_HOME’, ‘http://mysite.com’ );
    define( ‘WP_SITEURL’, ‘http://mysite.com’ );

    and it’s being ignored. So now my site is hosed. FYI I’m using WordPress 5.1.1 which appears to have significant changes. Help!

      • Sheri Ellis

        Thanks for the response but it didn’t work. I ran mysql command line to update the wp_options table and set option_value to http where option_name in (‘home’,’siteurl’). I have also inserted the define HOME and SITEURL commands into many PHP files including wp-config.php, and also added define( ‘RELOCATE’, true );

        Still hosed. Appreciate any additional suggestions!

  27. John J Cooke

    This made making the switch a snap. I was sitting on the ssl cert with no sure way how to convert. Really appreciate the easy instructions.

    • WPBeginner Support

      Glad we could make the process easier for you :)

      Admin

  28. Mandee

    Oh my goodness, THANK YOU! I’ve reached out to my hosting company, as well as a developer. They both made it seem like an impossible task to do on my own. Just took care of this is literally 30 seconds because of you. I can’t thank you enough! I wish I would have found this article sooner—would have saved me a lot of headache!!

    • WPBeginner Support

      Glad our article could help :)

      Admin

  29. Jerry

    Hi,

    I tried twice your step guide end everything worked great. Now that i have SSL i am trying to migrate but there is a problem on the final step, so it cannot be finalized. Is it a problem i had Lets Encrypt on old server and now that the new one has another, to have caused a problem. Would you recommend remove SSL on old hosting and after that using dublicator to start the articles process?

    • WPBeginner Support

      Who has your SSL should not be a factor for it not working, you could try to see if that works but it is normally due to another cause.

      Admin

  30. BILAL ALI AHMAD

    Hi,

    I applied all steps and https version is working fine on my website but the non-https version is still accessible when I type http: mysite.com

    how to resolve this issue?
    Also when I click on my google search link for my website user also lands on non-https version and after that if I access the website again it comes with https
    please tell me how to resolve this issue?

    • WPBeginner Support

      If you already submitted your site to Google’s Search console then Google may have cached the http version in their search. For the http version being available, you may want to ensure the redirects were all saved.

      Admin

  31. Clement

    This was surprisingly simple that’s why I rely on you guys, had actually thought it would be horrible.

    • WPBeginner Support

      Glad our guide could make it easy for you :)

      Admin

  32. Marc-Lyon

    Thanks for the great tutorial. Only issue I’m stuck with is that URLs with www appended give an error message in browser:

    “This site can’t provide a secure connection uses an unsupported protocol.
    ERR_SSL_VERSION_OR_CIPHER_MISMATCH
    Unsupported protocol
    The client and server don’t support a common SSL protocol version or cipher suite.”

    I’ve checked and both non-www and www versions have valid SSL certificates. Any idea why the www version is not working?

    • WPBeginner Support

      Start by reaching out to your hosting provider to ensure they don’t have a setting on their end for the www specific version of your site.

      Admin

      • Marc-Lyon

        Managed to sort it out. Cloudflare was causing the issue.
        Solution: disable and re-enable Universal SSL under Crypto settings.

        • WPBeginner Support

          Glad you were able to find the cause and thanks for sharing the solution should anyone else run into the issue :)

  33. Rock

    Very helpful blog. Thanks.

    • WPBeginner Support

      You’re welcome :)

      Admin

  34. illy

    All my images were inserted with http protocol. I used Better Search Replace to fix this and it worked like a charm!

    thank you

    • WPBeginner Support

      Glad our recommendation could help :)

      Admin

  35. Didier

    I have a problem with the redirect from http to https.

    Using the above mentioned code in the .htaccess file,

    my index page http:// example.com redirects to httpS:// example.com

    BUT

    A subpage http:// example.com/sublink does NOT redirect to https:// example.com/sublink

    Does anybody know how to solve this?

    Thank you!

    • WPBeginner Support

      You may want to reach out to your hosting provider to ensure they are not overriding any redirects on your site or if they see the code was copied incorrectly.

      Admin

  36. Jason

    Yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees! The first WP edit that has ever worked first time for me! I’m taking the rest of day off to celebrate.

    :-)

    • WPBeginner Support

      Glad our guide could help :)

      Admin

  37. Leo Al

    Thanks a lot!

    It worked :)

    • WPBeginner Support

      Glad our article could help :)

      Admin

  38. Igor N

    Thanks, that was really helpful. I went with the method 2 and everything was just fine.

    • WPBeginner Support

      Glad our tutorial could help and you got it working :)

      Admin

  39. Pamela

    This detailed article saved a beginner like me! So helpful. Thank you very much.

    • WPBeginner Support

      Glad our guide could be helpful :)

      Admin

  40. Rafaqat Ali

    Hi thanks for the article, I have shifted my site to ssl by using the article elaborated above.
    Let me clear a few things:
    1- I have added a new property in Google search console with https:// should I delete the http:// property or remain the both.
    2- How long it will take to show google search data in the search console report.
    3- Should I make a 301 redirect to https:// version.
    4- How to get all my backlinks to https:// version.
    ( i have submitted the XML sitemap and robots..txt file also with new property)
    Thanks for your time

    • WPBeginner Support

      Hey Rafaqat,

      If you have set up 301 redirect to your HTTPS urls, then you can leave them both. They would start appearing in search very soon, however of your redirects are properly setup you wont see any difference in your traffic or search rankings.

      Admin

  41. Belinda

    Thankyou so so much, this article helped me fix both my blog and online store. :)

  42. Roberto

    It is an amazing article, I solve my problem and now I have my site up and running. Thanks so much!

  43. Eva

    Hi and thank you for the detailed tutorial
    I have activated the ssl protocol on a new wordpress installation and after the activation the site’s started opening with https and green padlock ( all pages, with and without www search and if searching http version) even the admin area as far as the theme and editor , however the wordpress and site URL fields in the settings General page still need to be changed to https as they appear as http and any new publication (so as the ones alredy been there) has http link and when editong page appearancefrom main menu it shows exclamation mark oven the secure connection padlock
    In that case do I need to go thru all process or after updating the general settings page to https it will be ok ?
    It’s my first time doing that and I prefer ( if have to) to do it manually by the 2 method as it very well explained
    Thanks

    • WPBeginner Support

      Hi Eva,

      You can try the second method or follow the instructions in the first method. You will need to change the URLs in settings as it tells WordPress to use https in URLs.

      Admin

  44. Bernard Brillo

    I’ve tried following the manual tutorial but I end up seeing a blank white page on my homepage and all of my other page are now inaccessible. My website is hosted in Amazon and I’m also using W3 total cache.

    Do I need to do something else to make this work?

    Any suggestions will be much appreciated.

    • Donatas Vaiciulis

      On my website was W3 total cache, when I disabled it worked everything fine. I think after htaccess edit needed to reinstall plugin and do w3 settings again. Not tried yet, soon will try.

  45. Josh

    I did method 1 and it worked perfectly. Thanks so much for the tutorial!

  46. Karo Itoje

    Hello,

    As usual thanks for the detailed tutorial. I decided to do the manual option (option 2) because it seemed simple enough to follow through. However when I pasted the second code for nginx servers into configuration file (wp-config.php) I got a syntax error. So I had to remove the code. But I will still like to follow through with that option so if you can please maybe take a look at that code again and correct it then I’ll really appreciate it.

    Also just to get this clearly, it is either:

    “set up WordPress redirects from HTTP to HTTPS by adding the following code to your .htaccess file.”

    OR THIS

    “If you are on nginx servers (most users are not), then you would need to add the following code to redirect from HTTP to HTTPS in your configuration file:”

    Not both right?

  47. mostafa elaissaoui

    thank u

    realy you help me thank you

  48. Rohan Kothari

    Hi,

    I am planning to start an e-commerce store. Do I need to purchase a wildcard SSL certificate and a dedicated IP to enable payments on my website or will the free SSL certificate bundled with web hosting plans be adequate?

  49. Oliver

    Hi Guys,

    1st off a great and helpful article, thanks. I have changed my site from http to https and it took a lot less time than I expected, using the Better Search and Replace manual method. But now I can’t seem to change the address of the http version in the Google Search Console. It has both of the sites there but won’t allow me to swap. Is this necessary to do? It seems as if the redirects are working. Should I get the https site indexed as much as possible or will google do that with the http redirects anyway?

    • WPBeginner Support

      Hi Oliver,

      If you have both sites in the search console and a redirect in place, then Google will automatically detect the transition and will start showing reports for your HTTPS site.

      Admin

  50. Victor Fernando

    I used the first method, although I have experience in programming, I don’t have it in wordpress and I don’t dare to get my hands on the code even though it’s not that complicated.
    the first method worked i.e. installing the free plugin version.
    Thanks for the tip

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.