GoDaddy ヘルプ

WordPress で混合コンテンツエラーを修正する

If you recently installed an SSL certificate, you may see a new warning in your browser when you visit your site, or notice that some images aren't being displayed properly. Since your WordPress site is now loading on HTTPS, it may be caused by mixed content errors, which occur when an SSL-secured site (HTTPS) contains elements being served over an unsecure connection (HTTP), such as embedded images, videos, scripts, or iframes. If you troubleshoot your site using developer tools for mixed content error, you might see red warnings about the mixed content error.

mixed content error

Here's how to fix the issue using the Really Simple SSL plugin.

備考:この問題は、Linux ホスティングの .htaccess ファイルまたは Windows ホスティングの web.config ファイルを編集することでも修正できます。

  1. プラグインをインストールします。
  2. プラグインを有効化します。
  3. A pop-up window will appear asking you whether to activate SSL.
    Warning: You cannot install an SSL certificate with this plugin.
  4. In the field for Hosting provider, leave the default "Optional - Select your hosting provider" selected, and then select Activate SSL!
  5. Check the box for Mixed Content Fixer if it's not checked by default. Select or clear the other checkboxes for options relevant to your site
  6. Select Enable, and then Save and continue.
  7. The next section will offer additional privacy-focused plugins which you can choose to install, or select Skip to proceed.
  8. Select Finish and proceed to check your site to make sure your images display properly.

Images still missing?

  1. Select the Settings tab at the top of the page.
  2. Select SSL on the left, and then in the Mixed Content section:
    • Enable Mixed content fixer - init hook if the default Mixed content fixer doesn't fix your front-end mixed content issue.
    • Enable Mixed content fixer - back-end if you experience mixed content in the admin environment of your WordPress site.
  3. Select Save at the bottom of the page.

これで混在したコンテンツエラーが解決され、画像を正しく読み込めます。

関連情報