From: Tom Hughes Date: Wed, 28 Nov 2018 22:48:31 +0000 (+0000) Subject: Exempt wikibase redirects from being rewritten to wiki pages X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/ddc380cb484e6a23ed5aa2e4f6910852a278c476?ds=sidebyside Exempt wikibase redirects from being rewritten to wiki pages --- diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb index 37977a47f..7aba9752b 100644 --- a/cookbooks/mediawiki/templates/default/apache.erb +++ b/cookbooks/mediawiki/templates/default/apache.erb @@ -83,6 +83,10 @@ RewriteCond %{REQUEST_URI} !^/images/ RewriteCond %{REQUEST_URI} !^/api\.php$ RewriteCond %{REQUEST_URI} !^/opensearch_desc\.php$ + RewriteCond %{REQUEST_URI} !^/entity/ + RewriteCond %{REQUEST_URI} !^/value/ + RewriteCond %{REQUEST_URI} !^/reference/ + RewriteCond %{REQUEST_URI} !^/prop/ RewriteCond %{REQUEST_URI} !^/server-status RewriteCond %{REQUEST_URI} !^/.well-known/ RewriteCond %{LA-U:REQUEST_FILENAME} !-f