
內容簡介
這個簡單而輕量的 WordPress 維護外掛能夠將網站置於維護模式。與現有的外掛相比,其主要優點在於不提供選項,即可立即使用!
在維護模式下,其主要功能如下:
- 通過向所有未認證的客戶端發送「503服務不可用」的狀態,不會影響您的SEO。這意味著它會阻止搜索引擎丟失您網站的既有內容,並且不會將您的維護頁面索引,因此您的網站在停止服務時不會失去排名。即使是網站的RSS或Atom訂閱者,其內容也將被隱藏。
- 持續運作登錄/登出過程。
- 處理多站點中的啟用過程,這是許多現有外掛無法處理的。
- 如果用戶已登錄,則會正常顯示網站。
如何使用?
我們想澄清的是,本插件的使用非常簡單,無需設置選項,甚至一個也不需要!因為在多站點上工作時這是真正的煩惱。
這就是為什麼還有兩個開發人員過濾器,這些過濾器出現在下面的部分。
IP地址白名單
在某些情況下,不觸發維護模式很有用。這就是為什麼您可以添加一個文件到您的專案(mu-plugins),以指定IP範圍進行白名單。在我們的VPN IP上使用它在代理方面很有用。
請在以下github上找到實現示例;
自定義維護模式模板
默認情況下,它是在 templates 文件夾中找到的文件:maintenance.php
但是您可以使用以下在github上的實現方法,使用自定義模板放置在想要的地方。
Composer
您可以通過 composer 激活插件 wp plugin activate beapi-maitenance-mode [--network]
如果您是開發人員且未安裝插件,您也可以使用專用的 composer 命令來執行。
創建者
由Be API創建,自2009年以來,Be API 是法國 WordPress 的領先機構。我們位於巴黎,擁有30多名員工,並且始終招聘一些有趣和有才華的人,因此我們將樂意與您合作。
本插件只有維護版本,這意味著我們無法提供免費支持。請報告一個問題,耐心等待回覆。
為簡化提交問題的過程並加快回答,我們僅使用Github,因此請不要使用WP.Org支持,否則將不予考慮。
外掛標籤
開發者團隊
原文外掛簡介
This simple and lightweight WordPress maintenance plugin puts the site into maintenance mode. The major advantage, compared to existing plugins, is that there are no options, it is ready to use!
It was think, while in maintenance mode, to :
– Not impact your SEO by sending a ‘503 Service Unavailable’ status to all unauthenticated clients. This means that it will inhibits search engines from both losing your site’s existing content and indexing your maintenance page as well, so your site will not lose its rankings while it is out of service. Content will even be hidden from consumers of the site’s RSS or Atom feeds.
– Make continually work the login/loggout process.
– It handle the activate process in multisite, which a lot of existing plugins don’t.
– If people are logged in they will have the site displayed as normal/expected.
How ?
We would like to precise that this plugin is simple as pie, anyone can use it but still dev-oriented. The idea is to not have a bunch of options to set before using it, in fact not only one! Because, it is a really pain when working on a multisite.
That is why there as still two filter for developers, which come in the section below.
IPs whitelist
In certain conditions, it is useful to not trigger the maintenance mode. That’s why you can add a file to your project (mu-plugins) to specify a range of IPs to whitelist. At the agency we use it with our VPN IP.
Please find an example of implementation on the following github;
Customize the maintenance mode template
By default it is the file located in the templates folder : maintenance.php
But you can customize this template using the following implementation on github, with a custom template placed wherever you want.
Composer
It is possible to activate the plugin by composer wp plugin activate beapi-maitenance-mode [--network]
If you are a developer and the plugin is not installed, you could also just use a dedicated composer command.
Who ?
Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.
This plugin is only maintained, which means we do not guarantee some free support. Consider reporting an issue and be patient.
To facilitate the process of submitting an issue and quicker answer, we only use Github, so don’t use WP.Org support, it will not be considered.
