From e900f6acd4dda6bba098ddb505a144941b0daf95 Mon Sep 17 00:00:00 2001 From: Laszlo Rafael <rlacko99@gmail.com> Date: Wed, 9 Mar 2022 13:56:34 +0100 Subject: [PATCH] Add redirects --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index 9272ba5..125ba30 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; -- GitLab