Kashiwazaki SEO Meta Refresh Redirect
WordPress plugin for site migration via meta refresh redirects. Redirects all frontend pages to a target domain with remote URL checking, title fetching, canonical tag output, and a customizable landing page. Includes Transient API caching, 404/5xx fallback, SSRF prevention, and an admin settings page with color picker and media uploader.
by 柏崎剛 (Tsuyoshi Kashiwazaki) · github.com/tsuyoshikashiwazaki/wp-plugin-kashiwazaki-seo-meta-refresh-redirect · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/tsuyoshikashiwazaki/wp-plugin-kashiwazaki-seo-meta-refresh-redirect/archive/refs/heads/main.zipFrom the readme
Kashiwazaki SEO Meta Refresh Redirect
概要
サイト移転時にmeta refreshを使用してフロントエンドの全ページを指定ドメインへ転送するWordPressプラグインです。転送先の存在確認、タイトル取得、canonical出力、404フォールバック、ロゴ表示付きの移転告知ページを提供します。
主な機能
- meta refreshリダイレクト: 全フロントエンドページを指定ドメインへ自動転送(4xx/5xxフォールバック対応)
- SEO最適化転送: canonical タグ出力、転送先タイトル取得、Transient APIキャッシュ
- カスタマイズ可能な告知ページ: ロゴ画像、背景色、テキスト色、リンク色、メッセージを自由に設定
- セキュリティ対策: SSRF防止、wpsaferemotehead/get使用、$wpdb-prepare使用
インストール
1. プラグインフォルダを /wp-content/plugins/ にアップロード
2. WordPress管理画面「プラグイン」から有効化
3. 左メニューの「Kashiwazaki SEO Meta Refresh Redirect」から設定
使い方
基本設定
1. 転送先ドメイン(URL) に移転先のURLを入力(例: https://new-domain.com)
2. 転送待ち時間 を設定(デフォルト3秒)
3. 必要に応じて ロゴ画像、背景色、メッセージ をカスタマイズ
4. 「変更を保存」をクリック
設定項目
| 設定 | 説明 | デフォルト |
|------|------|-----------|
| 転送先ドメイン | 転送先の基本URL | 空 |
| 転送待ち時間 | meta refreshの待機秒数(-1で自動転送なし) | 3秒 |
| フォールバック先 | 転送先がエラー(4xx/5xx)時の代替URL | トップページ |
| canonical出力 | 転送先存在時にcanonicalタグを出力 | ON |
| タイトル取得 | 転送先のtitleタグを取得 | ON |
| ロゴ画像 | 告知ページに表示するロゴ | 空 |
| 背景色 | 告知ページの背景色 | #000000 |
| テキスト色 | 告知ページのテキスト色 | #cccccc |
| リンク色 | 告知ページのリンク色 | #e67e22 |
動作要件
- WordPress 5.0 以上
- PHP 7.4 以上
ライセンス
GPL v2 or later
作者
柏崎剛 (Tsuyoshi Kashiwazaki)