Created
June 9, 2023 15:13
-
-
Save shameemreza/8e74905783f52f27d7fed396fc081510 to your computer and use it in GitHub Desktop.
Fix Mixed Content in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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