Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created June 9, 2023 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shameemreza/8e74905783f52f27d7fed396fc081510 to your computer and use it in GitHub Desktop.
Save shameemreza/8e74905783f52f27d7fed396fc081510 to your computer and use it in GitHub Desktop.
Fix Mixed Content in WordPress
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)(\.jpg|\.jpeg|\.png|\.gif|\.js|\.css)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment