From fb29b7845c0af72aef95efb9569c4e825bd7b6b1 Mon Sep 17 00:00:00 2001 From: fechin Date: Sat, 18 Mar 2023 11:02:35 +0800 Subject: [PATCH] Update rewrite rule for CSS Cheat Sheet from alias to permanent redirect --- nginx.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index d4a0661..f038b49 100644 --- a/nginx.conf +++ b/nginx.conf @@ -34,11 +34,7 @@ http { # Rename cheatsheet rewrite ^/golang$ /go permanent; - - # Resolve CSS Cheat Sheet and CSS style directory conflict. - location ^/css$ { - alias css.html; - } + rewrite ^/css$ /css3 permanent; location / { try_files $uri $uri/ @html;