From f46a28b8d7a3d1ad660e2dadcc234153fa9899de Mon Sep 17 00:00:00 2001 From: Ali Najmabadi Date: Tue, 26 Nov 2024 10:22:46 +0330 Subject: [PATCH] chore: add some redirects and trailing slash --- liara_nginx.conf | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/liara_nginx.conf b/liara_nginx.conf index b64474aa..42e6d946 100644 --- a/liara_nginx.conf +++ b/liara_nginx.conf @@ -13,17 +13,6 @@ location = /404.html { } - -location / { - - if ($request_uri !~ /$) { - return 301 $request_uri/; - } - -} - - - # location / { # rewrite ^/(.*)/$ /$1 permanent; # } @@ -1629,8 +1618,17 @@ location ~ ^/.*?/applets/?$ { return 301 /paas/details/events/; } +location ~ ^/.*?/applets/?$ { + return 301 /paas/details/events/; +} +location ~ ^/app-deploy/netcore/desktop/?$ { + return 301 /paas/dotnet/how-tos/deploy-app/; +} +location ~ ^/app-deploy/flask/deploy/?$ { + return 301 /paas/flask/how-tos/deploy-app/; +}