diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-11-17 22:34:43 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-11-17 22:34:43 +0900 |
| commit | 7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b (patch) | |
| tree | b6ee1a13d195ef822705464f241c5bb04e4b4285 | |
| parent | 939e1bef306e6a5c3e8d67bf278c68f63193f744 (diff) | |
| download | blog.nsfisis.dev-7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b.tar.gz blog.nsfisis.dev-7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b.tar.zst blog.nsfisis.dev-7ac3a6b64d56fe5b1dff32da381cb32d91a78d6b.zip | |
nginx: redirect in HTTP layer
21 files changed, 11 insertions, 110 deletions
diff --git a/content/posts/2021-03-05/my-first-post.md b/content/posts/2021-03-05/my-first-post.md index 053ba4b..217db9f 100644 --- a/content/posts/2021-03-05/my-first-post.md +++ b/content/posts/2021-03-05/my-first-post.md @@ -1,7 +1,6 @@ --- title: "My First Post" date: 2021-03-05T23:38:21+09:00 -aliases: ['/posts/my-first-post/'] summary: | これはテスト投稿です。これはテスト投稿です。これはテスト投稿です。 changelog: diff --git a/content/posts/2021-03-30/phperkaigi-2021.md b/content/posts/2021-03-30/phperkaigi-2021.md index e2dd191..8d76a36 100644 --- a/content/posts/2021-03-30/phperkaigi-2021.md +++ b/content/posts/2021-03-30/phperkaigi-2021.md @@ -2,7 +2,6 @@ title: "PHPerKaigi 2021" date: 2021-03-30T23:22:40+09:00 tags: ["conference", "php", "phperkaigi"] -aliases: ['/posts/phperkaigi-2021/'] summary: | 2021-03-26 から 2021-03-28 にかけて開催された、PHPerKaigi 2021 に参加した。 changelog: diff --git a/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.md b/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.md index 3ce2d1e..87202cb 100644 --- a/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.md +++ b/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.md @@ -2,7 +2,6 @@ title: "[C++] 属性構文の属性名にはキーワードが使える [[void]] [[for]]" date: 2021-10-02T09:38:30+09:00 tags: ["cpp", "cpp17"] -aliases: ['/posts/cpp-you-can-use-keywords-in-attributes/'] summary: | C++ の属性構文の属性名には、キーワードが使える。ネタ記事。 changelog: diff --git a/content/posts/2021-10-02/python-unbound-local-error.md b/content/posts/2021-10-02/python-unbound-local-error.md index f5660fc..6e1b871 100644 --- a/content/posts/2021-10-02/python-unbound-local-error.md +++ b/content/posts/2021-10-02/python-unbound-local-error.md @@ -2,7 +2,6 @@ title: "[Python] クロージャとUnboundLocalError: local variable 'x' referenced before assignment" date: 2021-10-02T09:32:37+09:00 tags: ["python", "python3"] -aliases: ['/posts/python-unbound-local-error/'] summary: | Python における UnboundLocalError の理由と対処法。 changelog: diff --git a/content/posts/2021-10-02/ruby-detect-running-implementation.md b/content/posts/2021-10-02/ruby-detect-running-implementation.md index 65a1115..16b918d 100644 --- a/content/posts/2021-10-02/ruby-detect-running-implementation.md +++ b/content/posts/2021-10-02/ruby-detect-running-implementation.md @@ -2,7 +2,6 @@ title: "[Ruby] 自身を実行している処理系の種類を判定する" date: 2021-10-02T09:37:50+09:00 tags: ["ruby"] -aliases: ['/posts/ruby-detect-running-implementation/'] summary: | Ruby には複数の実装があるが、自身を実行している処理系の種類をスクリプト上からどのように判定すればよいだろうか。 changelog: diff --git a/content/posts/2021-10-02/ruby-then-keyword-and-case-in.md b/content/posts/2021-10-02/ruby-then-keyword-and-case-in.md index 334c31c..5b5c352 100644 --- a/content/posts/2021-10-02/ruby-then-keyword-and-case-in.md +++ b/content/posts/2021-10-02/ruby-then-keyword-and-case-in.md @@ -2,7 +2,6 @@ title: "[Ruby] then キーワードと case in" date: 2021-10-02T09:38:50+09:00 tags: ["ruby", "ruby3"] -aliases: ['/posts/ruby-then-keyword-and-case-in/'] summary: | Ruby 3.0 で追加される case in 構文と、then キーワードについて。 changelog: diff --git a/content/posts/2021-10-02/rust-where-are-primitive-types-from.md b/content/posts/2021-10-02/rust-where-are-primitive-types-from.md index 743b4d7..dc2630b 100644 --- a/content/posts/2021-10-02/rust-where-are-primitive-types-from.md +++ b/content/posts/2021-10-02/rust-where-are-primitive-types-from.md @@ -2,7 +2,6 @@ title: "Rust のプリミティブ型はどこからやって来るか" date: 2021-10-02T09:39:27+09:00 tags: ["rust"] -aliases: ['/posts/rust-where-are-primitive-types-from/'] summary: | Rust のプリミティブ型は予約語ではなく普通の識別子である。どのようにこれが名前解決されるのかを調べた。 changelog: diff --git a/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.md b/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.md index 7c85acb..485c304 100644 --- a/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.md +++ b/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.md @@ -2,7 +2,6 @@ title: "[Vim] autocmd events の BufWrite/BufWritePre の違い" date: 2021-10-02T09:37:12+09:00 tags: ["vim"] -aliases: ['/posts/vim-difference-between-autocmd-bufwrite-and-bufwritepre/'] summary: | Vim の autocmd events における BufWrite/BufWritePre がどう違うのかを調べた結果、違いはないことがわかった。 changelog: diff --git a/content/posts/2021-10-02/vim-swap-order-of-selected-lines.md b/content/posts/2021-10-02/vim-swap-order-of-selected-lines.md index 05657fa..10a6452 100644 --- a/content/posts/2021-10-02/vim-swap-order-of-selected-lines.md +++ b/content/posts/2021-10-02/vim-swap-order-of-selected-lines.md @@ -2,7 +2,6 @@ title: "Vimで選択した行の順番を入れ替える" date: 2021-10-02T09:37:25+09:00 tags: ["vim"] -aliases: ['/posts/vim-swap-order-of-selected-lines/'] summary: | Vim で選択した行の順番を入れ替える方法。 changelog: diff --git a/content/posts/2022-04-09/phperkaigi-2022-tokens.md b/content/posts/2022-04-09/phperkaigi-2022-tokens.md index e727adb..5640b8f 100644 --- a/content/posts/2022-04-09/phperkaigi-2022-tokens.md +++ b/content/posts/2022-04-09/phperkaigi-2022-tokens.md @@ -3,7 +3,6 @@ title: "PHPerKaigi 2022 トークン問題の解説" date: 2022-04-09T21:50:19+09:00 lastmod: 2022-04-16 tags: ["conference", "php", "phperkaigi"] -aliases: ['/posts/phperkaigi-2022-tokens/'] summary: | PHPerKaigi 2022 で私が作成した PHPer チャレンジ問題を解説する。 changelog: diff --git a/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html b/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html deleted file mode 100644 index 98a764b..0000000 --- a/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/"> - </head> -</html> diff --git a/docs/posts/my-first-post/index.html b/docs/posts/my-first-post/index.html deleted file mode 100644 index 960644b..0000000 --- a/docs/posts/my-first-post/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-03-05/my-first-post/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-03-05/my-first-post/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-03-05/my-first-post/"> - </head> -</html> diff --git a/docs/posts/phperkaigi-2021/index.html b/docs/posts/phperkaigi-2021/index.html deleted file mode 100644 index c6f9ff3..0000000 --- a/docs/posts/phperkaigi-2021/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-03-30/phperkaigi-2021/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-03-30/phperkaigi-2021/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-03-30/phperkaigi-2021/"> - </head> -</html> diff --git a/docs/posts/phperkaigi-2022-tokens/index.html b/docs/posts/phperkaigi-2022-tokens/index.html deleted file mode 100644 index 5b270d8..0000000 --- a/docs/posts/phperkaigi-2022-tokens/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2022-04-09/phperkaigi-2022-tokens/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2022-04-09/phperkaigi-2022-tokens/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2022-04-09/phperkaigi-2022-tokens/"> - </head> -</html> diff --git a/docs/posts/python-unbound-local-error/index.html b/docs/posts/python-unbound-local-error/index.html deleted file mode 100644 index fc80756..0000000 --- a/docs/posts/python-unbound-local-error/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/python-unbound-local-error/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/python-unbound-local-error/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/python-unbound-local-error/"> - </head> -</html> diff --git a/docs/posts/ruby-detect-running-implementation/index.html b/docs/posts/ruby-detect-running-implementation/index.html deleted file mode 100644 index cfb702f..0000000 --- a/docs/posts/ruby-detect-running-implementation/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/ruby-detect-running-implementation/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/ruby-detect-running-implementation/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/ruby-detect-running-implementation/"> - </head> -</html> diff --git a/docs/posts/ruby-then-keyword-and-case-in/index.html b/docs/posts/ruby-then-keyword-and-case-in/index.html deleted file mode 100644 index 0b84d2a..0000000 --- a/docs/posts/ruby-then-keyword-and-case-in/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/ruby-then-keyword-and-case-in/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/ruby-then-keyword-and-case-in/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/ruby-then-keyword-and-case-in/"> - </head> -</html> diff --git a/docs/posts/rust-where-are-primitive-types-from/index.html b/docs/posts/rust-where-are-primitive-types-from/index.html deleted file mode 100644 index 56c823a..0000000 --- a/docs/posts/rust-where-are-primitive-types-from/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/rust-where-are-primitive-types-from/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/rust-where-are-primitive-types-from/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/rust-where-are-primitive-types-from/"> - </head> -</html> diff --git a/docs/posts/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html b/docs/posts/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html deleted file mode 100644 index 3ea6c6b..0000000 --- a/docs/posts/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/"> - </head> -</html> diff --git a/docs/posts/vim-swap-order-of-selected-lines/index.html b/docs/posts/vim-swap-order-of-selected-lines/index.html deleted file mode 100644 index f985a9a..0000000 --- a/docs/posts/vim-swap-order-of-selected-lines/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="ja-JP"> - <head> - <title>https://blog.nsfisis.dev/posts/2021-10-02/vim-swap-order-of-selected-lines/</title> - <link rel="canonical" href="https://blog.nsfisis.dev/posts/2021-10-02/vim-swap-order-of-selected-lines/"> - <meta name="robots" content="noindex"> - <meta charset="utf-8"> - <meta http-equiv="refresh" content="0; url=https://blog.nsfisis.dev/posts/2021-10-02/vim-swap-order-of-selected-lines/"> - </head> -</html> @@ -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; } |
