Mixed content warnings appear when your WordPress site loads resources over a mixture of HTTP and HTTPS at the same time. Active mixed content is the most common type on WordPress sites and triggers browser security warnings that can drive visitors away.

You will fix mixed content errors by updating WordPress settings, replacing HTTP URLs throughout your database and configuring server-level redirects. Once complete, your site loads securely with no browser warnings.
yourdomain.co.uk/wp-adminWordPress stores your site’s URL in two database fields. You need to change these from HTTP to HTTPS so WordPress knows to generate secure URLs.
https://yourdomain.co.uk/wp-admin replacing yourdomain.co.uk with your actual domain name.
These settings control how WordPress generates URLs throughout your site. Changing them updates new content automatically, but existing database entries still contain HTTP references.
Your WordPress database contains HTTP URLs in post content, custom fields and widget settings. Manually finding and replacing these would take hours. Better Search Replace automates the process and includes safety features like dry run testing.

The plugin is now ready to scan your database. Next, you will configure it to find and replace HTTP URLs across all database tables.
Better Search Replace finds every instance of http://yourdomain.co.uk in your database and replaces it with https://yourdomain.co.uk. The plugin searches across all database tables including posts, pages and options.
http://yourdomain.co.ukhttps://yourdomain.co.uk replacing yourdomain.co.uk with your actual domain name. Double-check the spelling carefully.
Your database now contains HTTPS URLs throughout. However, visitors can still access your site over HTTP if they type the address directly. Server-level redirects prevent this.
WordPress now serves URLs over HTTPS but visitors can still access your site over HTTP if they type http://yourdomain.co.uk directly. Server-level redirects automatically send all HTTP requests to HTTPS.
If you use cPanel hosting, force HTTPS through the Domains interface. cPanel includes a built-in HTTPS redirect option that requires no manual file editing.
Add redirect rules to your .htaccess file. This file controls Apache web server behaviour for your WordPress site.
.htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

All HTTP requests now redirect to HTTPS before WordPress loads. This prevents mixed content warnings and protects visitor data from the moment they connect.
Your browser keeps loading and never reaches the page. This indicates a redirect conflict between the server and your WordPress configuration.
For a detailed walkthrough, see how to fix too many redirects.
If mixed content warnings remain after completing the steps above, HTTP URLs may be hardcoded in your theme files or plugin settings.
HTTPS (Hypertext Transfer Protocol Secure) encrypts data between your visitor’s browser and your web server. When someone logs into your WordPress admin area or submits a contact form, HTTPS prevents attackers from intercepting that information. Without HTTPS, login credentials and personal data travel across the internet in plain text.
According to Google’s Transparency Report, over 95% of web traffic in the UK now uses HTTPS. Modern browsers like Chrome and Firefox actively warn visitors when they land on sites without SSL certificates. Google has confirmed that HTTPS is a ranking signal in search results, meaning sites without HTTPS may rank lower than equivalent sites with proper encryption.
Your WordPress site now forces HTTPS connections and loads all resources securely. You updated WordPress core settings, replaced HTTP URLs throughout the database and configured server-level redirects. Visitors see the padlock icon in their browser, confirming their connection is encrypted.
Review your site over the next few days. Check that all pages load correctly, embedded videos play and forms submit without errors. If you encounter issues, consult our WordPress FAQs for solutions to common problems. Our managed WordPress hosting handles SSL certificates and HTTPS configuration automatically.
If you run into any trouble, get in touch and our team will be happy to help.
Get fast, secure and reliable WordPress Hosting with optimised for performance with AccelerateWP.
Get WordPress HostingCreate fully isolated individual accounts for your clients and manage them all from one dashboard.
Get Reseller Hosting