Page MenuHomePhabricator

Move old wikipedia.de banners to subdirectory
Open, Needs TriagePublic

Description

The Git repository for wikipedia.de banners is becoming unwieldy, as the Fundraising team wants to retain the option to view old banners.

To solve this, we want to move the old banners to subdirectories, one for each year, while retaining the URL schema of banners/wikipedia.de/BYY_BannerName.js

Acceptance criteria:

  • Old banners are in subdirectories
  • Banner links work regardless if they are in a subdirectory or not

Implementation details:

Modify the vhost definition of the web server with a try_files option to try files starting with the regex B(\d{2}), extracting the two year numbers and trying both the files (e.g.) B21_WPDE_XXX.js and 2021/B21_WPDE_XXX.js