How to fix SSL error

This is problem takes much time for someone who use WordPress first time.

Pages can be served via HTTP while still including HTTPS forms

Now, I will guide easy ways to solve this problem:

1. Edit your wp-config.php file

Please go to “Setting “, then click “General”  and change WordPress Address (URL) and Site Address (URL) as image:

Screenshot_3

Add these lines to your wp-config.php

define(‘WP_HOME’,’http://example.com’);
define(‘WP_SITEURL’,’http://example.com’);

2. Check your .htaccess file and HTTPS login in WordPress

Please make sure your .htaccess looks like below:

Screenshot_4

Then,  please  changes to the wp-config.php file

define(‘FORCE_SSL_LOGIN’, true);
define(‘FORCE_SSL_ADMIN’, true);

If you’ve added any of the above constant in the wp-config.php file, then remove it from there.

3. Disable all plugins

You disable all plugins that you active to support your theme, you don’t need disable plugin of theme.

4. Edit your WP_Options table

From your cPanel, login to your phpMyAdmin, go to your WP_Options table where you will find your site URL and home URL starting with HTTPS. You just need to edit it back to HTTP (by removing the “S”).

I hope this post is useful for everyone !

Leave a Reply

Your email address will not be published. Required fields are marked *