{"id":433,"date":"2024-04-10T12:14:21","date_gmt":"2024-04-10T12:14:21","guid":{"rendered":"https:\/\/chennaihosting.co.in\/kb\/?p=433"},"modified":"2024-06-13T02:52:05","modified_gmt":"2024-06-13T02:52:05","slug":"fix-common-ssl-issues","status":"publish","type":"post","link":"https:\/\/chennaihosting.co.in\/kb\/fix-common-ssl-issues\/","title":{"rendered":"How to Fix Common SSL Issues in WordPress"},"content":{"rendered":"\n<p>Fixing common SSL (Secure Socket Layer) issues in <a href=\"https:\/\/wordpress.com\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.com\/\" target=\"_blank\" rel=\"noopener\">WordPress <\/a>is crucial to ensure that your <a href=\"https:\/\/chennaihosting.co.in\/\" data-type=\"link\" data-id=\"https:\/\/chennaihosting.co.in\/\">website <\/a>is secure and accessible over HTTPS.<\/p>\n\n\n\n<p>Common SSL (Secure Socket Layer) issues on a hosting server can lead to security warnings, connectivity problems, and other issues that affect the accessibility and security of websites.<\/p>\n\n\n\n<p>Below are some common SSL issues and their solutions:<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#1-mixed-content-errors-common-ssl-issues\">1. Mixed Content Errors (Common SSL issues):<\/a><ul><li><a href=\"#problem\">Problem:<\/a><\/li><li><a href=\"#solution\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#2-ssl-certificate-not-installed\">2. SSL Certificate Not Installed:<\/a><ul><li><a href=\"#problem-1\">Problem:<\/a><\/li><li><a href=\"#solution-2\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#3-mixed-content-after-ssl-activation\">3. Mixed Content After SSL Activation:<\/a><ul><li><a href=\"#problem-3\">Problem:<\/a><\/li><li><a href=\"#solution-4\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#4-redirect-loop-after-ssl-activation\">4. Redirect Loop After SSL Activation:<\/a><ul><li><a href=\"#problem-5\">Problem:<\/a><\/li><li><a href=\"#solution-6\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#5-ssl-certificate-expired\">5. SSL Certificate Expired:<\/a><ul><li><a href=\"#problem-7\">Problem:<\/a><\/li><li><a href=\"#solution-8\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#6-ssl-not-working-on-subdomains\">6. SSL Not Working on Subdomains:<\/a><ul><li><a href=\"#problem-9\">Problem:<\/a><\/li><li><a href=\"#solution-10\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#7-ssl-certificate-not-trusted\">7. SSL Certificate Not Trusted:<\/a><ul><li><a href=\"#problem-11\">Problem:<\/a><\/li><li><a href=\"#solution-12\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#8-insecure-content-warning\">8. Insecure Content Warning:<\/a><ul><li><a href=\"#problem-13\">Problem:<\/a><\/li><li><a href=\"#solution-14\">Solution:<\/a><\/li><\/ul><\/li><li><a href=\"#9-unable-to-login-to-word-press-admin-after-ssl-activation\">9. Unable to Login to WordPress Admin After SSL Activation:<\/a><ul><li><a href=\"#problem-15\">Problem:<\/a><\/li><li><a href=\"#solution-16\">Solution:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-mixed-content-errors-common-ssl-issues\">1. Mixed Content Errors (Common SSL issues):<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mixed content errors occur when your WordPress site is loading some resources (like images, CSS, or JavaScript) over HTTP instead of HTTPS.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use a plugin like <strong>Really Simple SSL<\/strong> or <strong>Better Search Replace<\/strong> to automatically fix mixed content issues.<\/li>\n\n\n\n<li>Manually update URLs in your database from <code>http:\/\/<\/code> to <code>https:\/\/<\/code> using the <strong>Better Search Replace<\/strong> plugin or directly in phpMyAdmin.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-ssl-certificate-not-installed\">2. SSL Certificate Not Installed:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-1\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your website is not secured with an SSL certificate, resulting in an insecure connection.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-2\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Purchase an SSL certificate from a Certificate Authority (CA) or use a free SSL certificate from Let&#8217;s Encrypt.<\/li>\n\n\n\n<li>Install and activate the SSL certificate through your <a href=\"https:\/\/chennaihosting.co.in\/\" data-type=\"link\" data-id=\"https:\/\/chennaihosting.co.in\/\">hosting <\/a>provider&#8217;s control panel or cPanel.<\/li>\n\n\n\n<li>Use a plugin like <strong>Really Simple SSL<\/strong> to enable SSL on your WordPress site.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-mixed-content-after-ssl-activation\">3. Mixed Content After SSL Activation:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-3\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After activating SSL, some resources are still loaded over HTTP, causing mixed content errors.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-4\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use a plugin like <strong>Really Simple SSL<\/strong> to automatically fix mixed content issues.<\/li>\n\n\n\n<li>Manually update URLs in your database from <code>http:\/\/<\/code> to <code>https:\/\/<\/code> using the <strong>Better Search Replace<\/strong> plugin or directly in phpMyAdmin.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-redirect-loop-after-ssl-activation\">4. Redirect Loop After SSL Activation:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-5\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After enabling SSL, your website is stuck in a redirect loop, and you are unable to access the WordPress dashboard.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-6\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Edit the <code>.htaccess<\/code> file in the root directory of your WordPress installation.<\/li>\n\n\n\n<li>Add the following code to force HTTPS and resolve the redirect loop<\/li>\n<\/ul>\n\n\n\nRewriteEngine On \nRewriteCond %{HTTPS} off \nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-ssl-certificate-expired\">5. SSL Certificate Expired:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-7\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your SSL certificate has expired, causing a security warning in web browsers.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-8\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Renew your SSL certificate through your hosting provider&#8217;s control panel or cPanel.<\/li>\n\n\n\n<li>After renewing the certificate, clear the cache and refresh your website to ensure the SSL certificate is properly activated.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-ssl-not-working-on-subdomains\">6. SSL Not Working on Subdomains:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-9\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSL is not working on subdomains of your WordPress site.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-10\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install a wildcard SSL certificate that covers all subdomains.<\/li>\n\n\n\n<li>Alternatively, install a separate SSL certificate for each subdomain through your hosting provider&#8217;s control panel or cPanel.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-ssl-certificate-not-trusted\">7. SSL Certificate Not Trusted:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-11\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Web browsers display a security warning because the SSL certificate is not trusted.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-12\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Purchase an SSL certificate from a reputable Certificate Authority (CA) or use a free SSL certificate from Let&#8217;s Encrypt.<\/li>\n\n\n\n<li>Install and activate the SSL certificate through your hosting provider&#8217;s control panel or cPanel.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-insecure-content-warning\">8. Insecure Content Warning:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-13\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Web browsers display an insecure content warning because some resources are still loaded over HTTP.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-14\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use a plugin like <strong>Really Simple SSL<\/strong> to automatically fix insecure content issues.<\/li>\n\n\n\n<li>Manually update URLs in your database from <code>http:\/\/<\/code> to <code>https:\/\/<\/code> using the <strong>Better Search Replace<\/strong> plugin or directly in phpMyAdmin.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9-unable-to-login-to-word-press-admin-after-ssl-activation\">9. Unable to Login to WordPress Admin After SSL Activation:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"problem-15\">Problem:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After enabling SSL, you are unable to login to the WordPress admin dashboard.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"solution-16\">Solution:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Edit the <code>wp-config.php<\/code> file in the root directory of your WordPress installation.<\/li>\n\n\n\n<li>Add the following lines of code to force SSL for admin and login pages<\/li>\n<\/ul>\n\n\n\ndefine(&#8216;FORCE_SSL_ADMIN&#8217;, true);\n\n\n\n<p>By following these solutions, you should be able to fix common SSL issues in WordPress and ensure that your website is secure and accessible over HTTPS.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/chennaihosting.co.in\/kb\/#\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing common SSL (Secure Socket Layer) issues in WordPress is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":446,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":12,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/posts\/433\/revisions\/583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/media\/446"}],"wp:attachment":[{"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chennaihosting.co.in\/kb\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}