WordPress Plugin to Make your Blog Temporarily Unavailable for Maintenance
By Angsuman Chakraborty, Gaea News NetworkThursday, June 16, 2005
Overview
This Plugin allows you to make your blog temporarily unavailable to your users (with custom message). It is still accessible by the administrators.
It does one thing and does it well. It belongs to the class of zero-configuration plugins. In other words even your grandmother can use it.
Download
Download and follow the instructions in the next section for installation.
Installation
https://codex.wordpress.org/Managing_plugins#Installing_a_plugin
Note: This Plugin supports one-click-install through WordPress Plugin Manager and is also available from WordPress Plugin DB.
- Upload unavailable.php to your wp-content/plugins directory. At this point you are done unless you want to make your site unavailable now. Then read on.
- Log in to WordPress.
- Click Plugins from the main menu.
- Scroll to find the name of the plugin - Site Unavailable, and click Activate whenever you want to make your site unavailable.
Configuration and Usage
Install and activate the plugin as described above. You are done!
Now your site is unavailable to all of your users, till the time you decide to deactivate the plugin.
To reiterate the site will remain unavailable to all your users while this plugin is activated.
The Feeds and Trackback requests will be sent HTTP Code 503 indicating that the Server is Unavailable and they will be asked to retry after an hour (configurable).
Administrators can access the administrative section even while this plugin is activated.
Advanced
You do not need to read this section. The plugin will work fine without any changes at all. However if you are compulsive and feel the urge to tinker then read on.
To change the default message ( This blog is currently undergoing scheduled maintenance. Please try after 60 minutes. Sorry for the inconvenience. ) use the plugin editor to edit the plugin. Change the line where $message is specified to a message of your choice.
You can change the Retry-After hint given to Feed and Trackback requests by changing $retry_after. The value is in minutes. The default is 60 minutes. It also tells the users of the site when to retry again.
This is very useful when you do a scheduled maintenance and you want your users to come back after a fixed time.
Remember this is a hint. It has no bearing with when you make your site actually available ( by deactivating the plugin ).
Deactivate the plugin from the Plugin screen to make the site available again to the world.
Uninstallation
- Log in to WordPress.
- Click Plugins from the main menu.
- Scroll to find the name of the plugin - Site Unavailable, and click Deactivate. This disables the plugin and makes the site available again to all.
You can also delete the unavailable.php file from wp-content/plugins directory for permanent removal.
Cost
This plugin is free. However a linkback will be deeply appreciated. Think of it as a LinkWare.
Comments, feedbacks and suggestions are welcome.
July 17, 2010: 5:17 am
Thank you very much for yet another first-rate article. I am always searching for original WordPress tips to suggest to my readers. Thanks for creating this article. It’s exactly what I was searching for. Truly great post. |
March 19, 2010: 7:26 am
hey |
Red Devil |
November 5, 2009: 1:54 pm
I can’t acess to control panel, and I cant find them i my plugins folder… mz site is blocked What should I do? |
obert |
May 2, 2009: 11:27 am
how can i develop a site while i’m using this plugin? i can’t get a preview of every pages,but i’m the admin. |
April 30, 2009: 12:05 pm
Hi, thank you for this post. Not so long ago I did try this one cause I needed to hide my blog online cause I think its so private but of course there are viewers that I would want to be seen. This is a big help for future use. Thanks again. |
March 28, 2009: 7:39 am
Search in our blog by ‘template’. I am sure you will find plenty of them. Thanks Soumya Sinha |
March 28, 2009: 4:03 am
i want a template with dual sidebar on both left and rights side of my blog. can anyone tell me where can i find one. |
January 27, 2009: 9:11 pm
[...] Site Unavailable - Publishes a message that your site is down while still allowing admins to login. [...] |
November 22, 2008: 12:39 am
Can I enable PHP in that page? Puis-je activer PHP dans cette page? I am planning on using a countdown page (that has Flash and PHP for a mailing list) to launch my website. Je suis de planification sur l’utilisation d’une page à rebours (qui a Flash et PHP pour une liste de diffusion) pour lancer mon site. It will be the only page accessible till I launch my website. Elle sera la seule page accessible jusqu’au je lance mon site. |
November 1, 2008: 6:25 am
[...] Site Unavailable: Este plugin permite que usted haga su blog temporalmente inaccesible a sus usuarios (con el mensaje indicado). Sigue siendo accesible por los administradores. [...] |
October 9, 2008: 5:53 pm
[...] Site Unavailable - When you are upgrading or performing maintenance, why let your readers or visitors see errors? You can instead show a custom message that your site is offline and will be back shortly. [...] |
August 21, 2008: 9:50 pm
[...] во всплывающем окне выводит полное изображение. Site Unavailable - позволяет отобразить для читателей что сайт [...] |
August 21, 2008: 4:53 pm
[...] Site Unavailable: Este plugin permite que usted haga su blog temporalmente inasequible a sus usuarios (con el mensaje de encargo). Sigue siendo accesible por los administradores. Es una cero-configuracio’n plugin. [...] |
Prasannah |
April 21, 2008: 9:45 pm
Can I enable PHP in that page? I am planning on using a countdown page (that has Flash and PHP for a mailing list) to launch my website. It will be the only page accessible till I launch my website. |
March 30, 2008: 2:32 pm
No. It doesn’t deny access to search engines. However they will see the maintenance page like any other user. This plugin should only be activated when you want to take your blog offline / in maintenance mode. |
jobs nepal