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;