Hi!
I've made a small plugin that gives you the possibility to set your own message to show when someone tries to access a blog that has been archived or is a spamblog. You can also make the page return a 404 code (normally it's a 200).
There is one catch. I don't like to do this, but you have to add one line to your wp-config
file. I know the Graceful fail function is supposed to be pluggable, but I could not get it to work...
So, you have to put require_once(ABSPATH.'graceful_fail.php');
in your wp-config.php BEFORE require_once(ABSPATH.'wp-settings.php');
, that is to make sure that OUR graceful_fail() loads first.
Thats why the plugin is in two files. The graceful_fail.php
goes in the root (where your wp.config is), and the file graceful_fail_admin.php
goes in your mu-plugin folder.
Since you don't edit any other files, it should survive upgrades - since you normally don't do anything with the mu-plugins folder or the wp-config.php
The rest is done in your dashboard.
If you like to give it a try, you can download it here!
Regards,
Rune