{"id":1211,"date":"2020-09-22T07:03:39","date_gmt":"2020-09-22T07:03:39","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/09\/22\/4468993-how-to-fix-the-mixed-content-error-in-prestashop-at-hostinger\/"},"modified":"2025-08-27T07:10:34","modified_gmt":"2025-08-27T07:10:34","slug":"4468993-how-to-fix-the-mixed-content-error-in-prestashop-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4468993-how-to-fix-the-mixed-content-error-in-prestashop-at-hostinger\/","title":{"rendered":"How to Fix the Mixed Content Error in PrestaShop at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Mixed content occurs when you attempt to load images or other content using HTTP instead of HTTPS. To fix this, all you need to do is edit the links on your page so that they start with HTTPS instead. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To force HTTPS on your PrestaShop website, go to your PrestaShop administration panel, navigate to <b>Configure <\/b>&rarr; <b>Shop Parameters<\/b> &rarr; <b>General<\/b>, and choose <b>Enable SSL on all pages<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/09\/4aafb140-f3b7-4b28-bdb1-ca0bc889ffb1.jpg\" alt=\"The PrestaShop administration panel showing how to enable SSL on all pages\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Now, all the pages on your website will load using HTTPS. You can verify it by checking your website on an incognito window.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If the mixed content issue persists, open your website&rsquo;s <b>.htaccess<\/b> file using the <a href=\"\/support\/7949267-how-to-use-the-file-editor-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\">file manager<\/a> (or <a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">create it<\/a> if non-existent) and insert the following line of code:<\/p><pre><code>Header always set Content-Security-Policy: upgrade-insecure-requests<\/code><\/pre><p class=\"no-margin\">Save the changes and reload your site &ndash; it should be working properly with HTTPS.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">If your website uses <b>symlinks<\/b>, applying the above-mentioned change to the<b> .htaccess<\/b> file is not recommended &#128161; <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>All about mixed content issues and how to fix them in PrestaShop<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[214],"tags":[],"class_list":["post-1211","post","type-post","status-publish","format-standard","hentry","category-mixed-content"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4468993-how-to-fix-the-mixed-content-error-in-prestashop-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4468993-como-corregir-errores-de-contenido-mixto-en-prestashop-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4468993-comment-corriger-une-erreur-de-contenu-mixte-dans-prestashop-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4468993-bagaimana-cara-mengatasi-error-konten-campuran-di-prestashop\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/4468993-como-corrigir-o-erro-de-conteudo-misto-no-prestashop-na-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1211"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1211\/revisions"}],"predecessor-version":[{"id":4739,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1211\/revisions\/4739"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}