From dcf3615da7bd76e930bef2690610575b9d600369 Mon Sep 17 00:00:00 2001 From: Anna Shipman Date: Thu, 13 Jul 2017 15:08:01 +0100 Subject: [PATCH] Redirect JS and send it as javascript These two rules could probably be merged but leaving it like this for now. There is a third JS file that I need to deal with separately. --- mediawiki/.htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mediawiki/.htaccess b/mediawiki/.htaccess index 46756ce6..0062c31e 100644 --- a/mediawiki/.htaccess +++ b/mediawiki/.htaccess @@ -1,3 +1,7 @@ + + Header set Content-Type "text/javascript" + + Header set Content-Type "text/html" @@ -5,3 +9,9 @@ RewriteEngine on RewriteCond %{QUERY_STRING} (.+) RewriteRule ^(index\.php)$ $1\%3F%1 [L] + +RewriteCond %{QUERY_STRING} (.+) +RewriteRule ^(skins/common/wikibits\.js)$ $1\%3F%1 [L] + +RewriteCond %{QUERY_STRING} (.+) +RewriteRule ^(skins/common/ajax\.js)$ $1\%3F%1 [L]