From 24bfb4b43ef779e647aba5f11e46345c41a64635 Mon Sep 17 00:00:00 2001 From: Melchisedech Date: Fri, 4 Mar 2022 00:46:48 +0100 Subject: [PATCH] Trying return --- conf/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f57f8e2..7407542 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,11 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location ^~ __PATH__/ { +location __PATH__/ { # Path to source alias __FINALPATH__/ ; - rewrite ^(.*)$ $1?lang=__LANGUAGE__ break; + return 301 __FINALPATH__/%23/?lang=__LANGUAGE__; + ### Example PHP configuration (remove it if not used) # index index.php;