What's new

Welcome to WebForum | Zimbabwe Web Hosting Forum.

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Ask question

Ask questions and get answers from our community

Answer

Answer questions and become an expert on all topics.

Contact us

Get in touch with the site administrator directly.

Forum Group

Join the Forum Whatsapp group for daily updates.
  • Thanks for participating in our community, Discuss and Learn. All Forum members are allowed to create threads and posts. Resources posted here should be CLEAN and SAFE. Do not post “offensive” posts, links, or images. Remain respectful of other members at all times.

Fix SSL Mixed Content Issues on WordPress

WebForum

Administrator
Staff member
Administrator
Moderator
Business
Joined
May 19, 2021
Messages
98
Reaction score
21
Points
8
Location
Bulawayo
Website
ecowebzim.com
At times it is noticed that SSL is installed on a WordPress site but on the web browser the green padlock icon is not visible. This issue is caused by mixed content present in your site code.

Mixed content means there are some URLs with HTTP present on your website.

You can simply view the page source in your browser by right clicking on the page, click on ‘view page source’. Search for ‘http://’ you will see URLs present on your site.

There are two simple ways to solve this, either with a plugin or by adding a force redirection code in the .htaccess file of your domain.

First, solving this issue with a plugin.

If you have a WordPress website then there is a light and simple plugin for this called “SSL Insecure Content Fixer” by Webware.

ssl_insecure_fixer-768x232.png
There are two ways to install it, either install automatically through the WordPress admin, or download the .zip file, unzip to a folder, and upload the folder to your /wp-content/plugins/ directory and Activate the plugin through the ‘Plugins’ menu in WordPress.

For manual installation, you can download the plugin from here.

Method 2, by adding a code in the .htaccess file.

You have to log in to the cPanel account access to the file manager, locate the .htaccess file.

Login to your cPanel account - Go to the File Manager in your cPanel:

file_manager.png

Set your File Manager to show hidden files to see the .htaccess file:

locate_htaccess.png

Edit the .htaccess file:

edit.png

add the force redirection code provided below on the top of the .htaccess file code in the root folder of your domain..

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

IMPORTANT: Make sure that the line RewriteEngine On is not repeated twice. In case the line already exists, simply copy the rest of the code without it.
 

Forum statistics

Threads
114
Messages
175
Members
87
Latest member
18Brigid72
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top