Title: Custom 404 Handler
Author: jfkconsulting
Published: <strong>2025 年 5 月 17 日</strong>
Last modified: 2025 年 5 月 17 日

---

搜尋外掛

![](https://ps.w.org/custom-404-handler/assets/banner-772x250.png?rev=3295418)

![](https://ps.w.org/custom-404-handler/assets/icon-256x256.png?rev=3295413)

# Custom 404 Handler

 由 [jfkconsulting](https://profiles.wordpress.org/jfkconsulting/) 開發

[下載](https://downloads.wordpress.org/plugin/custom-404-handler.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/custom-404-handler/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/custom-404-handler/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/custom-404-handler/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/custom-404-handler/#developers)

 [技術支援](https://wordpress.org/support/plugin/custom-404-handler/)

## 外掛說明

This plugin allows you to take full control over how your WordPress site handles
404 (Not Found) errors. Instead of the default theme’s 404 page, you can:

 * **Display a Custom 404 Page:** Choose any published page on your site to serve
   as your 404 error page.
 * **Log 404 Errors:** Keep track of which URLs are causing 404 errors, including
   the referring URL, IP address, and user agent. This helps identify broken links
   or malicious activity.
 * **Analyze Logs:** View statistics like the most frequent 404 URLs and top referrers
   directly in your WordPress admin.
 * **Create Automatic Redirects:** Easily set up 301 (permanent) or 302 (temporary)
   redirects for specific 404 URLs to send visitors to the correct content. Track
   redirect hits.
 * **Export Logs:** Download your 404 error logs as a CSV file for external analysis.
 * **Optionally Redirect All 404s to Homepage:** A simple option to redirect all
   404 errors directly to your site’s homepage.
 * **Add `noindex` Tag:** Automatically add a `noindex, follow` meta tag to your
   404 pages (custom or default) to prevent search engines from indexing them.

## 螢幕擷圖

 * [[
 * [[
 * [[
 * [[

## 安裝方式

 1. Upload the `custom-404-handler` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to the ‘404 Handler’ -> ‘Settings’ menu in your WordPress admin to configure
    the plugin.
 4.  * Choose a custom 404 page (optional).
     * Enable/disable logging and set log limits.
     * Configure homepage redirect and `noindex` options.
 5. Visit ‘404 Handler’ -> ‘404 Logs’ to view logged errors and statistics.
 6. Visit ‘404 Handler’ -> ‘Redirects’ to manage your 404 redirects.

## 常見問題集

### Does this plugin create the 404 page content for me?

No, you need to create a standard WordPress page first. Then, in the plugin’s settings,
you select that page to be displayed when a 404 error occurs.

### Will this slow down my site?

The plugin is designed to be lightweight. Logging occurs only on actual 404 errors,
and redirects are checked efficiently. Performance impact should be minimal.

### Where is the log data stored?

Log data and redirect information are stored in custom tables (`wp_404_logs` and`
wp_404_redirects`) within your WordPress database.

### What happens if I don’t select a custom 404 page?

If no custom page is selected in the settings (and the homepage redirect option 
is off), your theme’s default `404.php` template will be used, but logging and redirects(
if configured) will still function. The `noindex` tag will also be applied if enabled.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Custom 404 Handler〉的開發相關工作。

參與者

 *   [ jfkconsulting ](https://profiles.wordpress.org/jfkconsulting/)

[將〈Custom 404 Handler〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/custom-404-handler)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/custom-404-handler/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/custom-404-handler/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/custom-404-handler/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/custom-404-handler/)。

## 變更記錄

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **1 年前**
 *  啟用安裝數 **40+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/custom-404-handler/)
 * 標籤:
 * [404](https://tw.wordpress.org/plugins/tags/404/)[custom 404](https://tw.wordpress.org/plugins/tags/custom-404/)
   [error](https://tw.wordpress.org/plugins/tags/error/)[logging](https://tw.wordpress.org/plugins/tags/logging/)
   [redirect](https://tw.wordpress.org/plugins/tags/redirect/)
 *  [進階檢視](https://tw.wordpress.org/plugins/custom-404-handler/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/custom-404-handler/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/custom-404-handler/reviews/)

## 參與者

 *   [ jfkconsulting ](https://profiles.wordpress.org/jfkconsulting/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/custom-404-handler/)