How to Fix SSL Error When You Can’t Login to WordPress

One of the unusual problem that many customers experience is that when trying to sign in to WordPress, an SSL error is occurred. In this informative article, you’re going to figure out how to fix SSL error when you’re incapable to login to WordPress admin.

So let’s have a look at all these SSL relevant issues in WordPress, along with their solutions.

Getting starting with WordPress.

SSL certificate

If you Have recently activated SSL certificate on your site and are unable to login to WordPress. In such a case, make sure that you’ve correctly configured SSL certificate and it’s related settings. Improperly configured SSL certificate may cause login issues.

Edit your wp-config.php file

Some users make changes in: Settings > General, and update WordPress Address (URL) and Site Address (URL) from there. By mistake, you might have added HTTPS to the URL. For example; https://yoursite.com instead of http://yoursite.com

SSL error on WordPress

If you’ve done these changes, then you wouldn’t be able to login to WordPress. Now you need to use a FTP client like Filezilla, or use your cPanel’s File Manager and edit your wp-config.php manually. Add these lines to your wp-config.php

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

Add these lines just before:

/* That’s all, stop editing! Happy blogging. */

Don’t forget to replace example.com with your own domain name.

Check your .htaccess file

In your website root directory, such as domain.com/public_html, you’ll find a file named as .htaccess.

Ensure that your .htaccess looks like below:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Forcing HTTPS login in WordPress

If you have recently made any changes into wp-config.php file to force HTTPS on the login page of WordPres, then remove it from there.

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

Disable all plugins

Some security plugins such as iThemes Security (previously known as Better WP Security) have an option to force SSL on your site for only admin page, and for all pages or posts. If you’ve marked this option in the plugin’s page, and if your server doesn’t supports SSL, then you won’t be able to login to WordPress because of SSL error.

Now you’ll need to deactivate all plugins, or you can also rename one plugin at a time to see if that has solved your problem.

To disable all plugins at once, use FTP client or your host’s File Manager and navigate to wp-content folder. Rename the “plugins” folder to “plugins.old”. This will deactivate all plugins instantly. If you’re now able to login then it means that a plugin is the corrupted, and in such a case you’ll need to find that plugin and remove it.

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”).

We hope this article helped you to Fix SSL Error When You Can’t Login to WordPress. Please check and give your opinion below if you experience any issues or to discuss your ideas and experiences. You may also want to see our guide on“Upload: Failed To Write File To Disk” Error In WordPress.

Leave a Reply

Register to Get FREE Offers

Why Pay for Software when you can GET it for FREE

JOIN US TONIGHT!