Do you want better privacy protection and want to switch your WordPress website to HTTPS?
Then keep reading!
In my detailed guide, you'll learn how to make the switch as smoothly as possible.
In 8 simple, easy-to-follow steps.
- HTTPS matters for privacy, Google rankings and faster load times (thanks to HTTP/2), so switching is definitely worth it.
- The switch takes 8 steps: install an SSL certificate, adjust URLs, update the database, set up a redirect and change the URL with third-party services.
- With the plugin Better Search Replace, you replace all old HTTP URLs in the database and avoid mixed content warnings.
Why switch to HTTPS?
There are plenty of good reasons to switch your website to HTTPS. That's why I recommend you don't put it off:
- It puts you on the safe side legally, especially if your website collects personal data, e.g. through contact forms or an online store.
- SSL encryption has been a Google ranking factor since August 2014 and has only become more important since!
- HTTPS makes your website faster, because you can use the faster HTTP/2 (as long as your hosting provider supports it).
- Major browsers like Google Chrome and Firefox label websites without encryption as “not secure”. That's especially true if they contain forms that send personal data to the website.
- More trust from readers and customers
Switching to HTTPS does have a few downsides, though, and they shouldn't go unmentioned here:
- A one-time effort to change the URLs on your website and with third-party services (roughly 60 minutes to 2 hours)
- With some plugins, social shares are no longer displayed
1. Install an SSL certificate on the server
For your website to be secured with SSL, an SSL certificate specific to your domain must first be installed on your server.
With hosting providers that support the free Let's Encrypt, such as webgo or all-inkl.com (both German hosting providers; all-inkl.com only from the PrivatPlus package), you can usually set this up yourself in the admin area of your hosting package or server:

If your hosting provider doesn't support Let's Encrypt, you have to contact support to set up a paid SSL certificate. A simple domain-validated certificate, such as RapidSSL, which is perfectly sufficient for most blogs and websites, costs between €15 and €40 per year.
Switching hosts can also be a good idea, though. These days, nobody should really have to pay for an SSL certificate anymore!
My web hosting comparison shows which hosts support Let's Encrypt and which don't.
With a virtual server or dedicated server, you may (or have to) install the SSL certificate yourself. That takes a bit more effort, but you can also save a few euros a year. Since there are many different web server systems, though, a guide for that would go beyond the scope of this one.
You can check whether your certificate is valid with the free SSL check.
2. Adjust the WordPress address and site address
Once the SSL certificate is installed on the server, the next step is to adjust your URLs in WordPress.
To do that, log in to WordPress, go to Einstellungen > Allgemein (Settings > General) and replace http with https in your URLs, both in the WordPress-Adresse (URL) (WordPress Address) field and in the Website-Adresse (URL) (Site Address) field.

3. Update permalinks
After changing the WordPress address and site address, you have to save your permalinks once more (under Einstellungen > Permalinks, Settings > Permalinks) so they are updated with your new URL:

If you don't, 404 errors are shown when you open a post or page.
4. Replace old URLs in the WordPress database
Updating the permalinks has at least made your site accessible again.
Unfortunately, it doesn't replace all URLs in WordPress with the new HTTPS URLs. All your posts and pages still contain the old HTTP URLs (e.g. in links to your own posts or in embedded media). The old URLs haven't been replaced with the new ones in any plugins or themes either.
That can cause parts of your website to still load over HTTP. In many browsers, that triggers a so-called mixed content warning (and, for example, a red lock instead of a small green lock next to your URL).
That's bad for visitors and bad for your Google ranking!
Depending on the size of your website, replacing all these URLs by hand can be very time-consuming. The best way is to install the free plugin Better Search Replace.
In the WordPress backend, go to Werkzeuge > Better Search Replace (Tools > Better Search Replace).
There, enter your old HTTP URL under Suchen nach (Search for) and your new HTTPS URL under Ersetzen durch (Replace with). Then select all tables under Tabellen auswählen (Select tables) with Ctrl + A and untick Testlauf? (Run as dry run?):

5. Create a redirect from HTTP to HTTPS
To make sure every request is redirected from HTTP to HTTPS and your website isn't reachable under both protocols, you need to create a 301 redirect.
To do that, access your FTP server and add the following code to the .htaccess file (the file is in your main WordPress directory).
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]To open and edit the file, I recommend using Notepad++ or Brackets. The code should go at the very top, before all other entries.
If your WordPress installation runs on an nginx server (that's usually not the case), you have to add the following code to your nginx.conf:
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}6. Clear caches
For your changes to show up on your live website, you should clear the cache of your caching plugin (such as Cache Enabler, WP Super Cache, W3 Total Cache, WP Rocket, etc.).
If other plugins do caching, you should clear their caches as well. That's the case with Contextual Related Posts, Simple Press, Autoptimize or ASA 2 Pro, for example.
7. Troubleshooting: Still no green lock?
Is your browser still showing a mixed content warning and no green lock?
Then your website still contains resources (images, JavaScript, CSS, etc.) that are loaded over HTTP.
7.1 Common sources of error
Resources loaded without encryption often hide in external resources, such as:
- externally loaded fonts (e.g. Google Fonts or FontAwesome)
- externally loaded scripts (e.g. the Pinterest button, Facebook Like Box or widgets)
- badges from blog directories and top lists
- ad banners and ad services
- tracking tools (e.g. Google Analytics or Matomo)
Old URLs can also hide in a child theme (with your own customizations) or in a theme or plugin that hasn't been updated in a long time.
So it's a good idea to update all installed plugins and your theme and to check the files of your child theme.
Be sure to check your CSS files and the custom CSS in the Customizer as well (under Design > Customizer, Appearance > Customize, in the WordPress admin area). In some cases, images loaded over HTTP (e.g. background images) can hide there.
7.2 Checking the source code
To find out where the troublemakers are hiding, it's a good idea to open the page's source code in the browser and search for http://:

7.3 Checking with the Chrome Developer Tools
The Chrome Developer Console is also very good for finding resources loaded without encryption. You open it in Google Chrome or Opera by right-clicking your website. In the context menu that appears, click Element untersuchen (Inspect).
In the Console tab, warnings are shown when resources are loaded over HTTP:

8. Change the URL with third-party services
Switching WordPress to HTTPS can cause services connected to your website to stop working. So please check all apps or integrations connected to your website, e.g. social network APIs, and replace the old URLs with the new ones.
8.1 On your social media channels
To prevent unnecessary redirects, you should also change your URL on social networks. That includes, for example:
- Facebook page (including links to your legal notice and privacy policy)
- Facebook groups (if present in the group description, announcements, etc.)
- Pinterest profile (including the legal notice)
- Instagram (and Linktree, if you use it)
- Your listing on Google My Business and Bing Places
- YouTube (including the legal notice)
8.2 In APIs
For connections to APIs to work properly, you should change your URL there too. That affects, for example, your own apps on Facebook or Instagram.
Also remember to change URLs the app needs to function, such as the Valid redirect URIs on Instagram or other URLs used for authentication:

8.3 In Google Analytics
In Google Analytics, you can switch your URL to HTTPS under Verwaltung > Property-Einstellungen > Standard-URL (Admin > Property settings > Default URL):

8.4 In Google Search Console
You also have to change your URL in Google Search Console, otherwise clicks will no longer show up in the search analytics.
Unfortunately, you can't simply change the URL, because http:// and https:// count as different properties.
Instead, you have to delete your existing property and add your website again as a property with HTTPS in the URL:

Be sure to remember to submit your sitemap to Google again after creating the new property:

8.5 In your email signature and newsletter
If you use your website in your email signature, like I do, you should change the URL to the encrypted SSL version there too.
The same goes for links in your newsletter (e.g. links to your legal notice, privacy policy, homepage, images on your server, etc.).
8.6 Affiliate programs and links
With affiliate programs and networks, you often have to enter your own URL in a profile or create an ad space with your own URL. Replace the old URL with the new one there too (if possible).
You should also switch all affiliate links embedded on your website to HTTPS. The plugin Better Search Replace works very well for that too:

If you don't, referrers may not be passed on to the affiliate program or network.
Referrers are important to many advertisers because they show on which URL the affiliate link was clicked. In some cases, sales or leads may even go uncredited because the referrer is missing!
FAQ
Here you'll find answers to common questions about WordPress and SSL:
Will my website get slower if I use HTTPS?
Yes, it will, if your hosting provider only supports the old HTTP/1.1 protocol.
If your hosting provider already supports the newer HTTP/2 protocol, though, using HTTPS actually makes your website faster (most browsers only support HTTP/2 in combination with HTTPS).
How can I test whether my website supports HTTP/2?
That's quick and easy with this free tool from KeyCDN.
Isn't there a plugin for this?
Yes, there is. You can skip many of the steps above if you install the plugin Really Simple SSL.
I advise against it for three reasons:
- Every additional plugin you install increases the risk of your website getting hacked (most security vulnerabilities are found in plugins).
- The plugin changes neither the database nor the source code of plugins or themes. That means you may still see mixed content warnings.
- If you deactivate the plugin, all the changes are gone again.
So:
Only use it temporarily, e.g. if you don't have time for a proper and lasting switch right now.
What do I do about a redirect loop?
After the switch, your website may be caught in a redirect loop from HTTP to HTTPS back to HTTP to HTTPS and so on.
Here are some possible sources of the error:
- Redirect plugins
- Login plugins that change the login URL
- Security plugins, e.g. Kadence Security (formerly iThemes Security), through which a redirect was set up
- Redirects inserted in the .htaccess or nginx.conf
In some cases, saving your permalinks again also helps (see step 3 in the guide).






