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;