Skip to content

Commit

Permalink
chore: add some redirects and trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi committed Nov 26, 2024
1 parent 6598e12 commit f46a28b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions liara_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ location = /404.html {
}



location / {

if ($request_uri !~ /$) {
return 301 $request_uri/;
}

}



# location / {
# rewrite ^/(.*)/$ /$1 permanent;
# }
Expand Down Expand Up @@ -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/;
}



Expand Down

0 comments on commit f46a28b

Please sign in to comment.