[WordPress] 外掛分享: Maintenance Redirect

首頁外掛目錄 › Maintenance Redirect
WordPress 外掛 Maintenance Redirect 的封面圖片
10,000+
安裝啟用
★★★★
4.9/5 分(24 則評價)
35 天前
最後更新
100%
問題解決
WordPress 6.1+ PHP 7.4+ v2.2.1 上架:2010-06-12

內容簡介

注意:最新版的 PHP 8.1 似乎存在問題。如果您遇到問題,請發布支援文章。

此外掛主要是為設計師 / 開發人員設計的,他們需要讓客戶在對外公開之前預覽網站,或者在進行重大更新時暫時隱藏 WordPress 網站。

任何具有 WordPress 管理員權限的已登錄使用者都可以查看網站,而不管插件設置如何。可以使用篩選背鉤來設置確切的權限 - 詳見常見問題解答。

此外掛的行為可以隨時啟用或禁用,而不會失去任何配置在其設置窗格中的設置。但是,建議停用插件而不是在停用時啟用它。

啟用重定向時,它可以發送 2 種不同的標頭類型。 "200 OK" 最適合在網站開發期間使用,而 "503 Service Temporarily Unavailable" 最適合在網站暫時離線進行小的修改時使用。如果長時間使用,503 可能會損壞您的 Google 排名。

可以設置一個 IP 地址列表來完全繞過維護模式。當需要在維護模式下允許客戶的整個辦公室訪問網站時,此選項非常有用,而無需維護單個訪問密鑰。

訪問密鑰是通過在用戶的計算機上創建 cookie 來工作的,在維護模式啟用時將檢查該 cookie。創建新密鑰時,將向提供的電子郵件地址發送創建訪問密鑰 cookie 的鏈接。可以通過禁用或刪除密鑰來撤消訪問權限。

此外掛允許三種通知用戶正在進行維護的方法:

他們可以看到一個簡單的消息。

他們可以看到一個自定義的 HTML 頁面。

他們可以被重定向到一個靜態 HTML 頁面。這個靜態頁面需要通過 FTP 或其他方法上傳到服務器上。此外掛不包括上傳靜態頁面文件的方法。任何 URL 都可以在此處使用,並且它不需要位於同一個服務器上(例如,如果您正在開發環境站點上工作,則可以重新導向回客戶當前的站點)。但是,它不應該是同一個站點上的 WordPress 頁面或文章的 URL,因為這將導致無限重定向循環。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Maintenance Redirect」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin is intended primarily for designers / developers that need to allow clients to preview sites before being available to the general public or to temporarily hide your WordPress site while undergoing major updates.
Any logged in user with WordPress administrator privileges will be allowed to view the site regardless of the settings in the plugin. The exact privilege can be set using a filter hook – see FAQs.
The behaviour of this plugin can be enabled or disabled at any time without losing any of the settings configured in its settings pane. However, deactivating the plugin is recommended versus having it activated while disabled.
When redirect is enabled it can send 2 different header types. “200 OK” is best used for when the site is under development and “503 Service Temporarily Unavailable” is best for when the site is temporarily taken offline for small amendments. If used for a long period of time, 503 can damage your Google ranking.
A list of IP addresses can be set up to completely bypass maintenance mode. This option is useful when needing to allow a client’s entire office to access the site while in maintenance mode without needing to maintain individual access keys. See FAQ below about working through a proxy.
Access keys work by creating a cookie on the user’s computer that will be checked for when maintenance mode is active. When a new key is created, a link to create the access key cookie will be emailed to the email address provided. Access can then be revoked either by disabling or deleting the key.
This plugin allows three methods of notifying users that a site is undergoing maintenance:

They can be presented with a simple message.

They can be presented with a custom HMTL page.

They can be redirected to a static HTML page. This static page will need to be uploaded to the server via FTP or some other method. This plugin DOES NOT include any way to upload the static page file. Any URL can be used here, and it doesn’t need to be on the same server (so you could redirect back to the client’s current site if you’re working on a dev site, for example). However, it should NOT be the URL of a WordPress page or post on the same site as this will result in an infinite redirect loop.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon