Capability sweep (recipe r66): inner pages return 404 after a site move because stored rewrite rules are out of date
サイト所有者に見えていた症状
After the site move, the homepage loaded but inner pages returned HTTP 404, because the rewrite rules stored for the site no longer matched it.
出典:能力スイープ(「復旧できること・できないこと」ページに掲載されている問題を 1 つ以上、1 つのテストサイトに仕込んだもの)。単一のフォーラムスレッドはありません。
テスト構成と、障害再現後に観測した状態
テストサイト:WordPress 7.1、PHP 8.3。下の表は、レシピどおりに障害を再現した後のトップページとログインページの HTTP ステータスです。
| サーバー構成 | トップページ | ログインページ | 備考 |
|---|---|---|---|
| Apache + PHP-FPM | 200 | 200 | |
| Apache + php-cgi (mod_cgid) | 200 | 200 | |
| Apache + mod_php | 200 | 200 | |
| nginx + PHP-FPM | 200 | 200 |
各実行の結果
| 日付(UTC) | サーバー構成 | 接続方式 | 結果 | 製品バージョン | 備考 | 項目ごとの結果 |
|---|---|---|---|---|---|---|
| 2026-11-08 | Apache + PHP-FPM | FTP | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | Apache + PHP-FPM | SSH | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | Apache + php-cgi (mod_cgid) | FTP | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | Apache + php-cgi (mod_cgid) | SSH | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | Apache + mod_php | FTP | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | Apache + mod_php | SSH | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | nginx + PHP-FPM | FTP | Recovered | 2.1.438 | permalinkStale: Cleared | |
| 2026-11-08 | nginx + PHP-FPM | SSH | Recovered | 2.1.438 | permalinkStale: Cleared |
この事例が対象とする問題の種類
補足
All runs used the small test site. WP admin mode was not run in this series.
この記録の変更履歴
- 2026-11-09 — Added 1 run from the lab run log.
- 2026-11-09 — Added 1 run from the lab run log.
- 2026-11-09 — Added 1 run from the lab run log.
- 2026-11-09 — Added 1 run from the lab run log.
- 2026-11-09 — Added 1 run from the lab run log.
- 2026-11-09 — Added 1 run from the lab run log.
- 2026-11-09 — Added 1 run from the lab run log.
これらは当社のテストサーバー上で、特定のバージョン・特定の日に記録したものであり、どのサイトについても結果を約束するものではありません。ホスティング、PHP、WordPress のバージョンが異なれば結果も異なることがあります。