Add year filter redirects

This commit is contained in:
Neeldhara Misra 2026-07-06 22:05:27 +05:30
parent 6e7eb9ce52
commit 7cb63470cd
3 changed files with 52 additions and 0 deletions

15
nginx.conf Normal file
View file

@ -0,0 +1,15 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location ~ "^/([0-9]{4})/?$" {
return 302 "/?year=$1#events";
}
location / {
try_files $uri $uri/ =404;
}
}