diff --git a/roles/archwiki/templates/nginx.d.conf.j2 b/roles/archwiki/templates/nginx.d.conf.j2 index 81c87ba8fd8223be712c07f8f892e74c784d72f2..b2cb0225523dd95e96e433a663f0f04c3be70576 100644 --- a/roles/archwiki/templates/nginx.d.conf.j2 +++ b/roles/archwiki/templates/nginx.d.conf.j2 @@ -75,6 +75,11 @@ server { rewrite ^ /rest.php; } + # https://phabricator.wikimedia.org/T288686 + location ^~ /w/rest.php/v1/search/title { + return 302 /rest.php/v1/search/title$is_args$args; + } + # special case for '/load.php' type URLs to cache css/js in nginx to relieve php-fpm location = /load.php { access_log /var/log/nginx/{{ archwiki_domain }}/access.log main;