Update rewrite rule for CSS Cheat Sheet from alias to permanent redirect

This commit is contained in:
fechin committed 2023-03-18 11:02:35 +08:00
1 parent 58affbcc3a
commit fb29b7845c
1 file changed
+1 -5
+1 -5
View File
@@ -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;