fbpx

How to solve HTTPS issue

What is HTTPS

HTTPS, or HyperText Transfer Protocol Secure, is a web technology that adds an extra layer of security when data is sent between a web browser and a website. It’s like a protective shield for your information. 

However, if you visit a website through HTTPS and all you see is plain HTML, you might notice a message in your browser’s address bar saying that your connection to the site isn’t entirely secure. This is a sign that the website might have mixed content errors. 

In simpler terms, while HTTPS is supposed to make your connection secure, if you’re only seeing plain text on the website and your browser complains that the site isn’t fully secure, it’s likely because there are issues with how the website is loading its content.

What is mixed content errors
?

Mixed content errors occur when a web page is trying to load resources from both secure (HTTPS) and insecure (HTTP) sources. If your website can be accessed via HTTPS, and it tries to load content like images, stylesheets, or scripts from insecure HTTP sources, it will trigger these mixed content errors.

How to fix mixed content errors?

1. Setup HTTPS in WordPress

Login WordPress dashboard, go to Settings > General, change WordPress Address (URL) and Site Address (URL) from http to https.

Add below code to your website .htaccess file for https redirection

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

				
			

2. Fix the URL in WordPress database

To fix the incorrect URL in WordPress database, go to Plugins > Add New, search for Better Search Replace plugin. Install and activate the plugin.

Then go to Tools > Better Search Replace 

Put http url in Search for field and https url in Replace with field

Select all database tables (Ctrl+Click for Windows or Cmd+Click for Mac)

Uncheck the box to ‘Run as dry run’ and click the button of Run Search/Replace

This plugin will help to check for each database table and replace all http url with https url.

After following these steps, you should have resolved the mixed content errors on your website.

To confirm, go ahead and browse your site. If you see a padlock icon in the browser’s address bar, it means the mixed content error has been fixed. Take a moment to check if there are any URLs still loading content via HTTP.

If you encounter any issues or need assistance, please don’t hesitate to reach out to us.

Scroll to Top