Other languages / Другие языки / Забонҳои дигар: Русский Тоҷикӣ

Mixed content is when an HTTPS page loads resources (images, scripts, styles) over HTTP. The browser shows "Not secure" in the address bar and may block the resources.

How to detect

  1. Open the site in Chrome / Firefox
  2. Press F12 → Console tab
  3. Reload the page
  4. Look for errors like: Mixed Content: The page at https://… was loaded over HTTPS, but requested an insecure resource

Typical sources

  • WordPress: hard-coded http://yourdomain.tj in posts, themes, widgets
  • External images: http://example.com/image.jpg
  • Old JS/CSS with http in src/href
  • iframes for YouTube/Vimeo with http

How to fix

Option 1 — change links in the DB (for WordPress):

UPDATE wp_options SET option_value = REPLACE(option_value, 'http://yourdomain.tj', 'https://yourdomain.tj');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://yourdomain.tj', 'https://yourdomain.tj');

Option 2 — Better Search Replace plugin in WP admin.

Option 3 — global .htaccess directive:

Header always set Content-Security-Policy "upgrade-insecure-requests"

The browser auto-upgrades all http to https in this document.

Verification

  • Address bar shows a green padlock
  • Console — no mixed content errors
  • Third-party services like whynopadlock.com show problem resources
Дали Ви помогна овој одговор? 0 Корисниците го најдоа ова како корисно (0 Гласови)