Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created June 9, 2023 15:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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