summaryrefslogtreecommitdiffhomepage
path: root/vhosts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-10 00:59:49 +0900
committernsfisis <nsfisis@gmail.com>2024-01-10 00:59:49 +0900
commit846b52639ead0cbc9bc292c2560fe45b1d3eed0c (patch)
treea4b4f16905dacf1b3c6c19e768b7bf223602c77d /vhosts
parent5fb526917cd941d2b4498a80b478ee5ab4570055 (diff)
downloadnsfisis.dev-846b52639ead0cbc9bc292c2560fe45b1d3eed0c.tar.gz
nsfisis.dev-846b52639ead0cbc9bc292c2560fe45b1d3eed0c.tar.zst
nsfisis.dev-846b52639ead0cbc9bc292c2560fe45b1d3eed0c.zip
fix(blog/nginx): redirect from /posts/2023-01-10/neovim-insert-namespace-declaration-to-empty-php-file/ to /posts/2024-01-10/*/ for my typo in URL
Diffstat (limited to 'vhosts')
-rw-r--r--vhosts/blog/nginx.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/vhosts/blog/nginx.conf b/vhosts/blog/nginx.conf
index 7b84774b..eea0675b 100644
--- a/vhosts/blog/nginx.conf
+++ b/vhosts/blog/nginx.conf
@@ -8,6 +8,7 @@ server {
error_page 404 /404.html;
+ # Old URLs.
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;
@@ -18,4 +19,7 @@ server {
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;
+
+ # I mistakenly wrote 2023 in the URL instead of 2024.
+ rewrite ^/posts/2023-01-10/(neovim-insert-namespace-declaration-to-empty-php-file)/?$ /posts/2024-01-10/$1/ permanent;
}