內容簡介
這個外掛可以輕鬆地將 WordPress 的 404 錯誤頁面導向至首頁或其他頁面。這個外掛支援永久重定向(HTTP 回應狀態碼 301)和暫時重定向(HTTP 回應狀態碼 302)。開啟 301 永久重定向後,當您啟用外掛時,它將立即開始將 404 錯誤頁面導向至首頁。要進行設置,請打開資訊中心 -> 設置 -> 一般設置,向下捲動到底部。
請注意,為了讓 404 重定向正常運作,必須在資訊中心 -> 設置 -> 永久連結中啟用永久連結功能。
新功能:此外掛可以記錄 404 錯誤,以便您檢查可能缺少的頁面。
在某些主題中,404 伺服器錯誤頁面很醜陋且訊息不清楚無法更改,因此 "重定向 404 錯誤頁面" 外掛非常有用。只需創建一個新的自訂 404 錯誤頁面並啟用該外掛程式即可解決問題。
它也非常適用於網站刪除了大量內容的情況。在這種情況下,只需創建一個新頁面以解釋所發生的事情,然後簡單地配置 "重定向 404" 以使用該頁面。
這是一個缺失頁面重導向的理想外掛程式。
相容 PHP 8.0
已在 PHP 8 上進行測試。
外掛標籤
開發者團隊
② 後台搜尋「Redirect 404 Error Page to Homepage or Custom Page with Logs」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Easily redirect WordPress 404 error pages to the homepage or any other page. The plugin supports permanent redirects (HTTP response status code 301) and temporary redirects (HTTP response status code 302). The plugin will redirect 404 error pages to the homepage when you activate it by using the 301 permanent redirects.
To configure it open Dashboard >> Settings >> General Settings and scroll down to the bottom.
Note Permalinks have to be enabled in Dashboard >> Settings >> Permalinks in order for the 404 Redirect to work properly.
New Feature
404 errors can be logged with this plugin so you can examine what pages may be missing.
Redirect 404 Error Page is very useful for themes with an ugly, uninformative 404 server error page that can’t be changed without missing code and set to still return 404. Simply create a new custom 404 error page and activate the plugin – problem solved!
It’s also beneficial in situations when a lot of content has been removed from the site. For those situations, create a new page explaining what happened and simply configure Redirect 404 to use that page.
It is an ideal plugin for missing page redirection.
