aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-11-19 14:23:01 +0900
committernsfisis <nsfisis@gmail.com>2022-11-19 14:23:01 +0900
commit0cafa073914b5e0b162b735a7f8445fb2aa8a604 (patch)
tree311d16d071b40f081af657b0d9345c37c485305b
parent7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b (diff)
downloadblog.nsfisis.dev-0cafa073914b5e0b162b735a7f8445fb2aa8a604.tar.gz
blog.nsfisis.dev-0cafa073914b5e0b162b735a7f8445fb2aa8a604.tar.zst
blog.nsfisis.dev-0cafa073914b5e0b162b735a7f8445fb2aa8a604.zip
nginx: fix redirect settings
-rw-r--r--nginx.conf20
1 files changed, 10 insertions, 10 deletions
diff --git a/nginx.conf b/nginx.conf
index 883b5fd..7b84774 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -8,14 +8,14 @@ server {
error_page 404 /404.html;
- rewrite ^/posts/(my-first-post)/?$ /posts/2021-03-05/$1/ permanent;
- rewrite ^/posts/(phperkaigi-2021)?$ /posts/2021-03-30/$1/ permanent;
- rewrite ^/posts/(cpp-you-can-use-keywords-in-attributes)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(python-unbound-local-error)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(ruby-detect-running-implementation)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(ruby-then-keyword-and-case-in)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(rust-where-are-primitive-types-from)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(vim-difference-between-autocmd-bufwrite-and-bufwritepre)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(vim-swap-order-of-selected-lines)?$ /posts/2021-10-02/$1/ permanent;
- rewrite ^/posts/(phperkaigi-2022-tokens)?$ /posts/2022-04-09/$1/ permanent;
+ rewrite ^/posts/(my-first-post)/?$ /posts/2021-03-05/$1/ permanent;
+ rewrite ^/posts/(phperkaigi-2021)/?$ /posts/2021-03-30/$1/ permanent;
+ rewrite ^/posts/(cpp-you-can-use-keywords-in-attributes)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(python-unbound-local-error)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(ruby-detect-running-implementation)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(ruby-then-keyword-and-case-in)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(rust-where-are-primitive-types-from)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(vim-difference-between-autocmd-bufwrite-and-bufwritepre)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(vim-swap-order-of-selected-lines)/?$ /posts/2021-10-02/$1/ permanent;
+ rewrite ^/posts/(phperkaigi-2022-tokens)/?$ /posts/2022-04-09/$1/ permanent;
}