Add year filter redirects
This commit is contained in:
parent
6e7eb9ce52
commit
7cb63470cd
3 changed files with 52 additions and 0 deletions
15
nginx.conf
Normal file
15
nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue