外掛說明
Redirection 是 WordPress 最受歡迎的重新導向管理工具。您可以使用它輕鬆管理 301 重新導向、追蹤 404 錯誤,並整理網站可能存在的各種遺漏問題。這有助於減少錯誤並提升網站排名。
Redirection 的設計可從只有少量重新導向的網站,一路支援到擁有數千個重新導向的網站。
這款 WordPress 外掛已有超過 10 年歷史,獲得無數次推薦。而且免費!
完整文件請參閱 https://redirection.me
Redirection 與 PHP 7.4 至 8.5 相容。
重新導向管理工具
不需要具備 Apache 或 Nginx 知識,即可快速輕鬆地建立及管理重新導向。如果你的 WordPress 支援永久連結,就能使用 Redirection 將任何 URL 重新導向。
完整支援規則運算式,因此你可以建立符合任意數量 URL 的重新導向模式。你可以比對查詢參數,甚至將參數傳遞至目標 URL。
您也可以將此外掛設定為監控文章或頁面的永久連結變更,並自動建立重新導向至新的 URL。
條件式重新導向
除了直接比對 URL 之外,您也可以根據其他條件進行重新導向:
- 登入狀態-僅在使用者登入或登出時重新導向
- WordPress 權限 – 如果使用者具備某項特定權限,則進行重新導向
- 瀏覽器-使用者使用特定瀏覽器時重新導向
- 參照網址-如果使用者是從其他頁面造訪該連結,便進行重新導向
- Cookie-如果設定了特定 Cookie,便進行重新導向
- HTTP 標頭 – 根據 HTTP 標頭進行重新導向
- 自訂篩選器 – 根據您自己的 WordPress 篩選器進行重新導向
- IP 位址 – 如果用戶端 IP 位址相符,則進行重新導向
- 伺服器-如果另一個網域也託管於此伺服器,則將其重新導向
- 頁面類型 – 目前頁面為 404 時重新導向
完整記錄
可設定的記錄選項可讓你檢視網站上發生的所有重新導向,其中包括訪客、所使用瀏覽器和參照網址的資訊。每個重新導向都會維護一個「命中」計數,讓你查看某個 URL 是否有人使用。
記錄可以匯出供外部檢視,也可以搜尋及篩選,以便進行更詳細的調查。
顯示 IP 位址的地理資訊,以及完整的使用者代理程式資訊,藉此了解訪客身分。
您可以停用或減少 IP 收集,以符合所在地理區域的法律要求,也可以將擷取的資訊量從最低限度調整至 HTTP 標頭。
你也可以記錄網站上發生的任何重新導向,包括在 Redirection 之外執行的重新導向。
新增 HTTP 標頭
您可以將 HTTP 標頭加入重新導向或整個網站,以協助減少重新導向的影響或提升安全性。您也可以加入自己的自訂標頭。
追蹤 404 錯誤
Redirection 會追蹤網站上發生的所有 404 錯誤,讓您找出並修正問題。
錯誤可分組顯示,方便你找出應優先處理的項目,也可以批次重新導向。
查詢參數處理
您可以完全比對查詢參數、忽略這些參數,甚至將其傳遞至目標。
移轉永久連結
變更了您的永久連結結構嗎?只要輸入舊的永久連結結構,即可移轉舊的永久連結。支援多次移轉。
Apache & Nginx 支援
預設情況下,Redirection 會使用 WordPress 管理所有重新導向。不過,您可以進行設定,讓重新導向自動儲存至 .htaccess 檔案,並由 Apache 本身處理。
如果您使用 Nginx,就可以將重新導向匯出為 Nginx 重寫規則檔案。
細緻的權限
提供細緻的權限,讓您可以為不同使用者自訂此外掛程式。這對客戶網站特別合適,因為您可能會想禁止某些操作並移除部分功能。
匯入 & 匯出
此外掛程式具備功能完整的匯入與匯出系統,您可以:
- 匯入及匯出至 Apache .htaccess
- 匯出為 Nginx 重寫規則
- 使用 JSON 在網站之間複製重新導向規則
- 匯入及匯出 CSV,以便在試算表中檢視
- 使用 WP CLI 自動化匯入與匯出
您也可以從下列外掛匯入:
- Simple 301 Redirects
- SEO 重新導向
- Safe Redirect Manager
- Rank Math
- WordPress 舊 Slug 重新導向
- Quick Post/Pages redirects
相容於 Search Regex
Redirection 與 Search Regex 相容,讓您可以批次更新您的重新導向。
等等,這是免費的?
沒錯,這確實完全免費。沒有進階版,也不必付費即可使用各項功能。這是一款專門的重新導向管理外掛。
支援
請將錯誤回報、修補程式及功能請求提交至:
https://github.com/johngodley/redirection
請將翻譯提交至:
https://translate.wordpress.org/projects/wp-plugins/redirection
安裝方式
此外掛安裝方式很簡單:
- 下載
redirection.zip - 解壓縮
- 將
redirection目錄上傳至您的/wp-content/plugins目錄 - 前往外掛管理頁面並啟用外掛
- 請從
Tools/Redirection頁面設定選項
你可以在外掛安裝頁面找到完整的外掛安裝資訊。
完整文件可在 Redirection 網站上找到。
常見問題集
-
為什麼要使用這個外掛,而不是 .htaccess?
-
易於使用。文章網址變更時會自動建立重新導向,而且手動新增重新導向比修改 .htaccess 容易得多。此外,還能追蹤 404 錯誤。
-
此外掛的效能如何?
-
此外掛程式的運作方式類似於 WordPress 處理永久連結的方式,應不會讓您的網站明顯變慢。
使用者評論
參與者及開發者
變更記錄
A x.1 version increase introduces new or updated features and can be considered to contain ‘breaking’ changes. A x.x.1 increase is purely a bug fix and introduces no new features, and can be considered as containing no breaking changes.
5.10.0 – 29th August 2026
- Add support for importing/exporting
_redirectsfiles - Add a Yoast SEO redirect importer
- Allow more than 25 groups to be used in the admin UI
- Fix passthrough redirects missing their target in the UI
- Fix Apache error encoder for errors other than 403
- Rework the database install process to avoid potential problems
- Tighten capability checks and improve proxy IP address handling
5.9.0 – 11th July 2026
- New and more powerful import/export
- Export everything, including settings
- Copy/paste or type redirects directly in a text box
- Preview imports and exports
- Duplicate redirect support when importing
- Improve .htaccess support
5.8.1 – 1st July 2026
- Escape CSV export values
5.8.0 – 8th June 2026
- Improve WP 7 UI
- Fix missing time in logs
- Don’t run redirects on CLI usage
- Allow editing of disabled redirects
5.7.5 – 1st March 2026
- Fix delete all regression from 5.7.4
5.7.4 – 28th February 2026
- Fix display setting not saving
- Fix ‘view data’ on logs
- Fix missing filters on select all
5.7.3 – 21st February 2026
- Fix log target having double domain
- Fix from/notfrom data not being used when editing
- Cleaned up behaviour around pagination and checkboxes
- Improved some styles
5.7.2 – 17th February 2026
- Fix select-all bulk action
- Improve setup page handling of problems
- Improve 404 page handling of incomplete data
5.7.1 – 16th February 2026
- Fix bulk delete on log and 404 page
- Restore filter by IP button
- Remove referrer from standard log display
5.7 – 15th February 2026
- Bump minimum PHP to 7.4
- Add multi-select support with shift-click in tables
- Add WP-CLI verbose flag for settings command to display setting names
- Improve log deletion performance with adaptive batch sizing for large backlogs
- Add permissions policy header
- Improve trash monitoring
5.6.1 – 17th January 2026
- Fix issue with spaces in Apache .htaccess
- Add some checks for sites with opcache to help with renamed files
- Fix inverted caching of unmatched URLs
5.6.0 – 1st January 2026
- Streamlined bundle size
- Update for WP 6.9
- Bump minimum PHP to 7.2
5.5.2 – 16th February 2025
- Fix saving of x-frame-options
- Fix CPT loading
- Fix last access date changing on update
- Remove newsletter option
5.5.1 – 24th November 2024
- Fix problem with category pages and permalink migration
- Don’t report invalid JSON import as successful
- Exclude CPTs without URLs for monitoring
- Update for WP 6.7
5.5.0 – 10th August 2024
- Multiple ‘URL and WP page type’ redirects will now work
- Translations now use WP core
5.4.2 – 27th January 2024
- Remove Geo IP option (it may return)
- Fix crash in agent info
- Add new max-age header
- Remove deprecated ini_set call
- Don’t double encode URLs when checking
5.4.1 – 5th January 2024
- Fix problem with some international URLs not appearing in the 404 log
5.4 – 1st January 2024
- Don’t encode negative lookaheads
- Remove port from server name
- Importing into a disabled group now creates disabled items
- Add option to pick IP header
- Fix save of x-content-type-options: sniff
- Fix save of multiple spaces
5.3.10 – 2nd April 2023
- Fix associated redirect setting not saving properly
5.3.9 – 25th January 2023
- Fix incorrect sanitization applied to target URLs
5.3.8 – 22nd January 2023
- Fix app rendering twice causing problems with upgrades
- Fix CSV header being detected as an error
5.3.7 – 8th January 2023
- Fix problem with locales in certain directories
- Fix incorrect import of empty CSV lines
- Don’t encode regex for Nginx
5.3.6 – 12th November 2022
- Fix for sites with a version of +OK
- Another fix for CZ locale
5.3.5 – 6th November 2022
- Fix crash on options page for Czech language
5.3.4 – 14th September 2022
- Fix query parameter name with a + not matching
5.3.3 – 7th September 2022
- Fix default HTTP header not being set when first used
- Fix incorrect column heading in CSV
- Fix passing of mixed case parameters
5.3.2 – 6th August 2022
- Fix missing props error
- Fix missing value for .htaccess location display
5.3.1 – 29th July 2022
- Fix crash caused by bad translations in locale files
- Fix query match not working when it contained mixed case
- Fix missing flag in .htaccess export
5.3.0 – 21st July 2022
- Improve installation process
- Improve permalink migration so it works with more permalinks
- Prevent ordering columns by HTTP code
- Better encode URLs in Nginx export
- Allow escaped characters to work in the redirect checker
- Reduce CSV import time
5.2.3 – 6th February 2022
- Fix error when grouping by URL, adding redirect, and then adding another redirect
- Add a warning for unescaped ? regex
5.2.2 – 22nd January 2022
- Further improve URL checker response to clarify responsibility
- Fix WordPress and pagetype match preventing the logging of 404s
- Fix title field being inactive
- Fix CSV export having duplicate column
5.2.1 – 16th January 2022
- Include path with inline URL checker
5.2 – 15th January 2022
- Improve URL checker and show more details
- Retain query parameter case when passing to target URL
- Remove unnecessary database stage option check
- PHP 8.1 compatibility
5.1.3 – 24th July 2021
- Fix geo IP on log pages showing an API redirected error
- Fix crash when changing match type in edit dialog
5.1.2 – 17th July 2021
- Fix random redirect not working
- Fix [userid] shortcode returning 1
5.1.1 – 11th April 2021
- Revert the permalink migration improvement from 5.1 as it’s causing problems on some sites
5.1 – 10th April 2021
- Add importer for PrettyLinks
- Fix crash converting a ‘do nothing’ to ‘redirect to URL’
- Improve warning messages
- Improve permalink migration when is_404 is not set
- Fix ‘delete log entries’ returning blank data
- Fix missing .htaccess location
- Fix hits & date not imported with JSON format
5.0.1 – 26th Jan 2021
- Fix incorrect warning when creating a regular expression with captured data
- Fix JS error when upgrading a database with a broken REST API
- Increase regular expression redirect limit
- PHP8 support
5.0 – 16th Jan 2021
- Add caching support
- Add support for migrated permalink structures
- Add dynamic URL variables
- Add fully automatic database upgrade option
- Add a new version release information prompt
- Improve performance when many redirects have the same path
- Move bulk all action to a separate button after selecting all
- Fix error in display with restricted capabilities
- Avoid problems with 7G Firewall
- Improve handling of invalid encoded characters






