diff --git a/.htaccess b/.htaccess index b4f84d17..2c730af2 100644 --- a/.htaccess +++ b/.htaccess @@ -18,11 +18,23 @@ RewriteCond %{HTTPS} =on [OR] RewriteCond %{REQUEST_SCHEME} =https RewriteRule owa.tracker-combined-min.js$ https://%{HTTP_HOST}%1/modules/base/dist/owa.tracker.js [NC,R=301,L] +RewriteCond %{REQUEST_URI} (.*)/modules/base/js/owa.(heatmap|vendors|player).js$ +RewriteCond %{HTTP:X-Forwarded-Proto} =https [OR] +RewriteCond %{HTTPS} =on [OR] +RewriteCond %{REQUEST_SCHEME} =https +RewriteRule js$ https://%{HTTP_HOST}%1/modules/base/dist/owa.%2.js [NC,R=301,L] + RewriteCond %{REQUEST_URI} (.*)/modules/base/js/owa.tracker-combined-min.js$ RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR] RewriteCond %{HTTPS} =off [OR] RewriteCond %{REQUEST_SCHEME} =http RewriteRule owa.tracker-combined-min.js$ http://%{HTTP_HOST}%1/modules/base/dist/owa.tracker.js [NC,R=301,L] +RewriteCond %{REQUEST_URI} (.*)/modules/base/js/owa.(heatmap|vendors|player).js$ +RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR] +RewriteCond %{HTTPS} =off [OR] +RewriteCond %{REQUEST_SCHEME} =http +RewriteRule js$ https://%{HTTP_HOST}%1/modules/base/dist/owa.%2.js [NC,R=301,L] +