{"id":17553,"date":"2019-05-06T06:46:04","date_gmt":"2019-05-06T06:46:04","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=17553"},"modified":"2026-03-10T09:30:28","modified_gmt":"2026-03-10T09:30:28","slug":"fix-mixed-content-wordpress","status":"publish","type":"post","link":"\/ca\/tutorials\/fix-mixed-content-wordpress\/","title":{"rendered":"How to fix WordPress mixed content Error using plugins and the .htaccess file"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>The mixed content warning is a common WordPress error often caused by incorrect Secure Socket Layer (SSL) settings. It indicates that your WordPress website has insecure assets from non-HTTPS URLs.<\/p><p>Resolving mixed content warnings on your WordPress site should be a priority. It can harm the user experience and cause search engines to flag your site as unsafe, potentially affecting your rankings. More severe cases can also make your site susceptible to unauthorized tracking and on-path attacks.<\/p><p>This tutorial will explore the potential causes of the mixed content error in WordPress and how to identify it. Then, we&rsquo;ll explain three effective methods to fix mixed content warnings: using a plugin, updating website URLs from HTTP to HTTPS, and modifying the <strong>.htaccess<\/strong> file.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n<div class=\"protip\"><div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                   What Is the WordPress Mixed Content Error?\n                <\/p>\n            <\/div>\n            <p class=\"protip__content\">The WordPress mixed content warning appears when a website serves both secure (HTTPS) and non-secure (HTTP) content due to incorrect SSL settings. To resolve it, you must force WordPress to display all content from secure HTTPS connections, which can be accomplished by using a plugin, updating HTTP links to HTTPS, or modifying the .htaccess file.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-what-causes-the-mixed-content-error-in-wordpress\">What Causes the Mixed Content Error in WordPress<\/h3><p>Enabling HTTPS\/SSL is a common <a href=\"\/ca\/tutorials\/how-to-secure-wordpress\/\">security practice for WordPress websites<\/a>. Setting up a <a href=\"\/ca\/tutorials\/wordpress-ssl\/\">WordPress SSL certificate<\/a> lets you encrypt data between your site and visitors for a secure connection.<\/p><p>Many web hosts, including Hostinger, bundle <a href=\"\/ca\/free-ssl-certificate\">free SSL certificates<\/a> with their hosting plans. Alternatively, you can buy an SSL certificate from a third-party provider and install it yourself.<\/p><p>Unfortunately, you may encounter WordPress mixed content warnings even with a valid SSL certificate. They occur when an HTTPS site uses an absolute path to load HTTP scripts. An absolute path specifies the precise location of a directory or file. Here&rsquo;s an example:<\/p><pre class=\"wp-block-preformatted\">http:\/\/domainname.com\/featured-image.jpg<\/pre><h2 class=\"wp-block-heading\" id=\"h-how-to-identify-the-mixed-content-error-in-wordpress\">How to Identify the Mixed Content Error in WordPress<\/h2><p>The easiest way to spot a mixed content error in WordPress is by looking at your browser&rsquo;s site address bar.&nbsp;<\/p><p>Depending on your browser, a <strong>Not secure<\/strong> warning or a<strong> broken padlock<\/strong> icon may appear next to your site&rsquo;s URL with a message saying, &ldquo;<strong>Your connection to this site is not fully secure.<\/strong>&rdquo;<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-unsecure.png\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"390\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-unsecure.png\/public\" alt=\"A mixed content warning in Chrome\" class=\"wp-image-94414\"  sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a><\/figure><\/div><p>Using <strong>Developer tools<\/strong> in the Google Chrome browser, you can identify which assets are loading with the HTTP connection.&nbsp;<\/p><p>To access it, click the three vertical dots on Chrome&rsquo;s top menu bar and choose <strong>More tools<\/strong> &rarr; <strong>Developer tools<\/strong>. Alternatively, press <strong>Ctrl+Shift+I<\/strong> for Windows or Linux and <strong>Cmd+Option+I<\/strong> for macOS.<\/p><p>Open the <strong>Console <\/strong>tab in <strong>Developer tools <\/strong>to see all the flagged insecure WordPress content on your website.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/googlechrome-mixedcontent.png\"><img loading=\"lazy\" decoding=\"async\" width=\"548\" height=\"425\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/googlechrome-mixedcontent.png\/public\" alt=\"Mixed content warnings that are flagged by Chrome's Developer tools\" class=\"wp-image-94416\"  sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-how-to-fix-the-wordpress-mixed-content-error\">How to Fix the WordPress Mixed Content Error<\/h2><p>We will walk you through three possible solutions to <a href=\"\/ca\/tutorials\/debug-wordpress\/\">debug your WordPress website<\/a> for mixed content errors, starting with the simplest method.<\/p><h3 class=\"wp-block-heading\">How to Fix the WordPress Mixed Content Error Using a Plugin<\/h3><p>If you can access your WordPress admin dashboard, install an HTTPS\/SSL plugin to fix the mixed content warning. Many of these plugins offer a free version that has features to resolve insecure content issues with a few clicks.<\/p><p>For this tutorial, we&rsquo;ll show you how to troubleshoot mixed content errors in WordPress using the <a href=\"https:\/\/wordpress.org\/plugins\/ssl-insecure-content-fixer\/\" target=\"_blank\" rel=\"noopener\">SSL Insecure Content Fixer<\/a> plugin:<\/p><ol class=\"wp-block-list\">\n<li>Install and activate <strong>SSL Insecure Content Fixer<\/strong> from the WordPress plugin directory. Refer to our article on <a href=\"\/ca\/tutorials\/wordpress\/how-to-install-wordpress-plugins\/\">how to install WordPress plugins<\/a>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/ssl-insecure-content-fixer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"343\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/ssl-insecure-content-fixer.png\/public\" alt=\"The SSL Insecure Content Fixer plugin's install option in WordPress\" class=\"wp-image-94417\"  sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Navigate to <strong>Settings<\/strong> &rarr; <strong>SSL Insecure Content<\/strong> from your admin dashboard to configure the plugin.<\/li>\n\n\n\n<li>The <strong>Fix insecure content<\/strong> field determines the level of fixing that the plugin will apply. The <strong>Simple <\/strong>option focuses on scripts, stylesheets, and WordPress media files, which minimizes impact on website performance. Start here and escalate if needed until the warning is resolved.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/ssl-insecure-content-fixer-configuration.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1202\" height=\"842\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/ssl-insecure-content-fixer-configuration.png\/w=1024,h=1024,fit=scale-down\" alt=\"The configuration page of the SSL Insecure Content plugin\" class=\"wp-image-94418\"  sizes=\"auto, (max-width: 1202px) 100vw, 1202px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>The <strong>HTTPS detection<\/strong> field dictates how your WordPress site identifies HTTPS pages. You can set it to the <strong>standard WordPress function<\/strong> or choose another option below it if you&rsquo;re using a <a href=\"\/ca\/tutorials\/how-to-set-up-nginx-reverse-proxy\/\">reverse proxy like NGINX<\/a> or <a href=\"\/ca\/tutorials\/how-to-setup-cloudflare-for-wordpress\/\">Cloudflare CDN<\/a>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/ssl-insecure-content-fixer-configuration-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1180\" height=\"373\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/ssl-insecure-content-fixer-configuration-2.png\/w=1024,h=1024,fit=scale-down\" alt=\"The SSL Insecure Content plugin's HTTPS detection section in the WordPress dashboard\" class=\"wp-image-94419\"  sizes=\"auto, (max-width: 1180px) 100vw, 1180px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Leave other settings as they are and click <strong>Save Changes<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Visit your WordPress site to check if the mixed content error has been resolved.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/ca\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-111781\"  sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\">How to Fix the WordPress Mixed Content Error by Updating Links<\/h3><p>If an HTTPS\/SSL plugin doesn&rsquo;t resolve the problem, certain URLs might be hard-coded in your WordPress database or files. In this case, you need to replace all the URLs with HTTPS.<\/p><p>If there are only a couple of insecure links, remove them manually. If there are a lot of them, use a search-and-replace plugin to update all the insecure links in your database tables.<\/p><p><div class=\"announcement-block announcement-block--important\">\n            <span class=\"announcement-block__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                          d=\"M12 22.5C17.799 22.5 22.5 17.799 22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5ZM13.637 7.65198C13.637 6.74791 12.9041 6.01501 12 6.01501C11.0959 6.01501 10.363 6.74791 10.363 7.65198C10.5335 9.53749 10.875 13.383 10.875 13.383C10.875 14.0043 11.3787 14.508 12 14.508C12.6213 14.508 13.125 14.0043 13.125 13.383V13.38L13.637 7.65198ZM11.9927 15.714C11.3714 15.714 10.8677 16.2177 10.8677 16.839C10.8677 17.4603 11.3714 17.964 11.9927 17.964H12.0073C12.6286 17.964 13.1323 17.4603 13.1323 16.839C13.1323 16.2177 12.6286 15.714 12.0073 15.714H11.9927Z\"\n                          fill=\"#FEA419\"\/>\n                <\/svg>\n                Important\n            <\/span>\n            <p class=\"announcement-block__content\">\n                <strong>Important!<\/strong> <a href=\"\/ca\/tutorials\/backup-wordpress\/\">Backup your WordPress website<\/a> before making any changes to your database.\n            <\/p><\/div>\n\n\n\n<\/p><p>Follow these steps to perform bulk updates in your WordPress database using the <a href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\" rel=\"noopener\">Better Search Replace<\/a> plugin:<\/p><ol class=\"wp-block-list\">\n<li>Install and activate <strong>Better Search Replace<\/strong> from the WordPress plugin directory.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/better-search-replace.png\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"319\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/better-search-replace.png\/public\" alt=\"The Better Search Replace plugin's install option in WordPress\" class=\"wp-image-94421\"  sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Navigate to <strong>Tools <\/strong>&rarr; <strong>Better Search Replace<\/strong> from your admin dashboard.<\/li>\n\n\n\n<li>Fill the <strong>Search for<\/strong> field with your HTTP website address, and add the HTTPS version to the <strong>Replace with<\/strong> field.<\/li>\n\n\n\n<li>The <strong>Select tables<\/strong> field determines which tables to update. Press <strong>Ctrl<\/strong> and click each entry to select all the tables.<\/li>\n\n\n\n<li>Leave additional settings as they are. The form should look like this:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/better-search-replace-configuration.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"887\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/better-search-replace-configuration.png\/w=1024,h=1024,fit=scale-down\" alt=\"The Search\/Replace plugin's interface in the WordPress dashboard\" class=\"wp-image-94423\"  sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/a><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Click <strong>Run Search\/Replace<\/strong> to start the update process.<\/li>\n\n\n\n<li>Since the <strong>Dry run<\/strong> mode is on, the plugin will only present its findings. Verify that they are indeed HTTP URLs.<\/li>\n\n\n\n<li>Deactivate the <strong>Dry run <\/strong>mode and rerun the search and replace process.<\/li>\n<\/ol><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro Tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\"><a href=\"\/ca\/tutorials\/clear-browser-cache\/\">Clear browser cache<\/a> before testing your WordPress website to ensure it loads the latest data.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h3 class=\"wp-block-heading\">How to Fix the WordPress Mixed Content Error via the .htaccess File<\/h3><p>The final method to address mixed content warnings in WordPress is to <a href=\"\/ca\/tutorials\/ssl\/force-https-using-htaccess\/\">force a secure HTTPS connection<\/a> through the <strong>.htaccess<\/strong> file.&nbsp;<\/p><p>This file configures various functions for websites hosted on several web servers, including Apache. One key function is to enforce WordPress to redirect visitors from insecure HTTP connections to HTTPS.<\/p><p>You can <a href=\"\/ca\/tutorials\/locate-and-create-htaccess\/\">find or create the .htaccess file<\/a> in your website&rsquo;s root directory, which houses all the WordPress core files.<\/p><p>This tutorial will show you how to modify <strong>.htaccess<\/strong> using Hostinger&rsquo;s File Manager. However, you can also use an <a href=\"\/ca\/tutorials\/ftp\/filezilla-ftp-configuration\/\">FTP client like FileZilla<\/a>. Here&rsquo;s how:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>Files <\/strong>&rarr; <strong>File Manager<\/strong> on <a href=\"\/support\/1583483-comprehensive-guide-to-hpanel-at-hostinger\/\">hPanel<\/a>.<\/li>\n\n\n\n<li>Select <strong>Access files of yourdomain.com<\/strong> to view that specific website&rsquo;s files.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/hpanel-filemanager.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"446\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/hpanel-filemanager.png\/w=1024,h=1024,fit=scale-down\" alt='The File Manager section in hPanel, with the \"Access Files of yourdomain.com\" option highlighted' class=\"wp-image-94424\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Double-click on the <strong>public_html<\/strong> folder and locate the <strong>.htaccess<\/strong> file. Remember, you can create a new one if there isn&rsquo;t any.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/filemanager-htaccess.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"383\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/09\/filemanager-htaccess.png\/w=1024,h=1024,fit=scale-down\" alt=\"The .htaccess file is highlighted in the root directory.\" class=\"wp-image-94425\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Right-click on the file and select <strong>Edit<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Paste the following code snippet at the bottom of the file.<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">RewriteEngine On\nRewriteCond %{HTTPS} !=on\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]\nHeader always set Content-Security-Policy \"upgrade-insecure-requests;\"<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Click <strong>Save <\/strong>and reload your WordPress site to check if the mixed content errors have been resolved.&nbsp;<\/li>\n<\/ol><p>If the process is successful, users visiting your website through an insecure HTTP link will be redirected to a secure HTTPS connection.<\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/How-to-Speed-Up-Your-Website-EN.pdf\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"566\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/eBook-Speed-Up-your-website.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-69260\"  sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><p>\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Suggested Reading                <\/p>\n            <\/div>\n            <p class=\"protip__content\"><br>\n<a href=\"\/ca\/tutorials\/ssl-benefits\/\">Do I Need an SSL Certificate? How SSL Can Protect Your Site<\/a><br>\n<a href=\"\/ca\/tutorials\/types-of-ssl-certificate\/\">Types of SSL Certificates: Which One Should You Pick?<\/a><br>\n<a href=\"\/ca\/tutorials\/http-error-when-uploading-images-to-wordpress\/\">How to Fix WordPress HTTP Error When Uploading Images<\/a><br>\n<a href=\"\/ca\/tutorials\/how-to-secure-wordpress\/\">How to Improve WordPress Security<\/a><br>\n<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>A mixed content warning can happen after installing an SSL certificate. If left unresolved, it can hurt your SEO and user experience and create vulnerabilities on your website. Therefore, fixing it at the earliest opportunity is essential.&nbsp;<\/p><p>Thankfully, there are three solutions to fix mixed content errors in WordPress:<\/p><ul class=\"wp-block-list\">\n<li>Use a plugin for a hassle-free fix.<\/li>\n\n\n\n<li>Manually update hard-coded HTTP links to HTTPS.<\/li>\n\n\n\n<li>Force WordPress to redirect from HTTP to HTTPS through the <strong>.htaccess<\/strong> file.<\/li>\n<\/ul><p>We hope this article helps secure your WordPress site and provide a seamless experience for visitors. If you have more questions, check our FAQ section or leave a comment. Good luck!<\/p><h2 class=\"wp-block-heading\" id=\"h-wordpress-mixed-content-error-faq\">WordPress Mixed Content Error FAQ<\/h2><p>This section answers some of the most frequently asked questions about troubleshooting mixed content warnings in WordPress sites.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1695615593527\"><h3 class=\"schema-faq-question\">How Do I Fix Mixed Content on a WordPress Site?<\/h3> <p class=\"schema-faq-answer\">There are three ways to fix the mixed content error in WordPress. The easiest fix is by using a plugin. Alternatively, you can manually update HTTP to HTTPS for hard-coded URLs or modify the <strong>.htaccess<\/strong> script to force secure HTTPS connections.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1695615604110\"><h3 class=\"schema-faq-question\">Why Is Fixing the Mixed Content Warnings Important?<\/h3> <p class=\"schema-faq-answer\">Fixing WordPress mixed content warnings is essential. They can harm your SEO and user experience. It can even lead to security vulnerabilities, making your site susceptible to unauthorized tracking and cyber attacks.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1695615614654\"><h3 class=\"schema-faq-question\">How Can I Find Mixed Content Errors on My Site?<\/h3> <p class=\"schema-faq-answer\">Look for a <strong>Not secure<\/strong> warning or a <strong>broken padlock<\/strong> icon on your browser&rsquo;s address bar. In Google Chrome, open the <strong>Console <\/strong>tab in <strong>Developer tools<\/strong> to identify HTTP-loaded assets.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The mixed content warning is a common WordPress error often caused by incorrect Secure Socket Layer (SSL) settings. It indicates that your WordPress website has insecure assets from non-HTTPS URLs. Resolving mixed content warnings on your WordPress site should be a priority. It can harm the user experience and cause search engines to flag your [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/fix-mixed-content-wordpress\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Fix WordPress Mixed Content Error: 3 Methods (%currentyear%)","rank_math_description":"Find out how to fix the WordPress mixed content error by using an SSL plugin, updating links in the database, and editing the .htaccess file.","rank_math_focus_keyword":"wordpress mixed content","footnotes":""},"categories":[22692],"tags":[],"class_list":["post-17553","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/corrigir-conteudo-misto-wordpress","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/contenu-mixte-wordpress","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-solucionar-contenido-mixto-en-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-mengatasi-mixed-content-wordpress","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-solucionar-contenido-mixto-en-wordpress","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-solucionar-contenido-mixto-en-wordpress","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-solucionar-contenido-mixto-en-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/corrigir-conteudo-misto-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/fix-mixed-content-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/fix-mixed-content-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/17553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=17553"}],"version-history":[{"count":37,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/17553\/revisions"}],"predecessor-version":[{"id":141500,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/17553\/revisions\/141500"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=17553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=17553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=17553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}