Skip to content
Permalink
Browse files
Redirect CSS and serve it as CSS
As per previous, this could probably be merged but this will do for now.
  • Loading branch information
annashipman committed Jul 13, 2017
1 parent dcf3615 commit d9716c3b4df460eacd36d5a6128de64764e84722
Showing with 13 additions and 0 deletions.
  1. +13 −0 mediawiki/.htaccess
@@ -2,6 +2,10 @@
Header set Content-Type "text/javascript"
</FilesMatch>

<FilesMatch "\.css\?">
Header set Content-Type "text/css"
</FilesMatch>

<FilesMatch "\.php\?">
Header set Content-Type "text/html"
</FilesMatch>
@@ -15,3 +19,12 @@ RewriteRule ^(skins/common/wikibits\.js)$ $1\%3F%1 [L]

RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(skins/common/ajax\.js)$ $1\%3F%1 [L]

RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(skins/common/shared\.css)$ $1\%3F%1 [L]

RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(skins/common/commonPrint\.css)$ $1\%3F%1 [L]

RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(skins/monobook/main\.css)$ $1\%3F%1 [L]

0 comments on commit d9716c3

Please sign in to comment.