From 58463901389bb4daf60f0ed25a7bbf78a2300c47 Mon Sep 17 00:00:00 2001 From: Melchisedech Date: Fri, 4 Mar 2022 08:55:21 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ecbe74a..ba0d049 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,9 @@ location __PATH__/ { # Path to source alias __FINALPATH__/ ; - rewrite ^(.*)$ https://__DOMAIN____PATH_URL__/%23/?lang=__LANGUAGE__ break; + if ($args !~* lang=__LANGUAGE__){ + rewrite ^(.*)$ https://__DOMAIN____PATH_URL__/%23/?lang=__LANGUAGE__ last; + } ### Example PHP configuration (remove it if not used) # index index.php;