From 14b2ede753f77c8e97843bc10bc76c6eb55a0aa5 Mon Sep 17 00:00:00 2001 From: bms8197 Date: Mon, 27 Nov 2023 23:35:41 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to dnf run --- nginx/conf.d/898.ro.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nginx/conf.d/898.ro.conf b/nginx/conf.d/898.ro.conf index 90a60ae..6f83bad 100644 --- a/nginx/conf.d/898.ro.conf +++ b/nginx/conf.d/898.ro.conf @@ -31,6 +31,16 @@ server { return 301 https://898.ro/tags/$1; } + # Redirect /tag/ URLs to /tags/ + location ~ ^/tags/(.*) { + return 301 https://898.ro; + } + + # Redirect /en/ URLs + location ~ ^/en/(.*) { + return 301 https://898.ro; + } + # Redirect /tag/ URLs to /tags/ location ~ ^/tag/(.*) { return 301 https://898.ro/tags/$1;