aboutsummaryrefslogtreecommitdiffhomepage
path: root/nginx.conf
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-11-17 22:34:43 +0900
committernsfisis <nsfisis@gmail.com>2022-11-17 22:34:43 +0900
commit7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b (patch)
treeb6ee1a13d195ef822705464f241c5bb04e4b4285 /nginx.conf
parent939e1bef306e6a5c3e8d67bf278c68f63193f744 (diff)
downloadblog.nsfisis.dev-7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b.tar.gz
blog.nsfisis.dev-7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b.tar.zst
blog.nsfisis.dev-7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b.zip
nginx: redirect in HTTP layer
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
index 12fcd32..883b5fd 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -7,4 +7,15 @@ 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;
}