diff --git a/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template b/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template index 8fa8d746f..ae502bacf 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template @@ -28,7 +28,7 @@ server { # Legacy URLS set $REWRITE_LEGACY_URLS "$NGINX_REWRITE_LEGACY_URLS"; if ($REWRITE_LEGACY_URLS = 'true') { - rewrite ^/vue$1 /$1 permanent; + rewrite ^/vue/(.+)/?$ /$1 permanent; } # Frontend (default) diff --git a/deployment/bare_metal/nginx/sites-available/gradido.conf.template b/deployment/bare_metal/nginx/sites-available/gradido.conf.template index 4464e407e..103a5402a 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf.template +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf.template @@ -13,7 +13,7 @@ server { # Legacy URLS set $REWRITE_LEGACY_URLS "$NGINX_REWRITE_LEGACY_URLS"; if ($REWRITE_LEGACY_URLS = 'true') { - rewrite ^/vue$1 /$1 permanent; + rewrite ^/vue/(.+)/?$ /$1 permanent; } # Frontend (default)