diff --git a/nginx.conf b/nginx.conf index 9272ba5fb4721384a350346a659496458f22318d..125ba30f55affb0229250c6e635d94aa352db40b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,9 @@ server { root /usr/share/nginx/html; + rewrite ^/wp-content/uploads/2022/02/.* $scheme://$http_host/documents/szabalyzat-2022-1.pdf last; + rewrite ^/[0-9]+/[0-9]+/[0-9]+/(.+) $scheme://$http_host/articles/$1 redirect; + location / { index index.html index.htm;