How can I put the wiki in off-line mode so the users will see a message that the wiki is down for maintenance?
I searched the MediaWiki website, the list archives and DefaultSettings, and I couldn't find this information...
On Mon, 2007-02-26 at 10:30 -0300, Fernando Correia wrote:
How can I put the wiki in off-line mode so the users will see a message that the wiki is down for maintenance?
I searched the MediaWiki website, the list archives and DefaultSettings, and I couldn't find this information...
echo "The wiki is down for maintenance, please try again later..." > index.html
;)
(this of course, assumes your DirectoryIndex specifies index.html before index.php, which it should anyway).
2007/2/26, David A. Desrosiers desrod@gnu-designs.com:
echo "The wiki is down for maintenance, please try again later..." > index.html
Sometimes the simple solutions elude us... :-)
Thanks!
2007/2/26, David A. Desrosiers desrod@gnu-designs.com:
echo "The wiki is down for maintenance, please try again later..." > index.html
On a second thought, that won't prevent direct links like http://server/wiki/index.php?title=...
Doesn't MediaWiki have an on/off switch?
That would be useful during version upgrades. Putting and exit on LocalSettings is not a good solution because the database upgrade script will not run.
How can I put the wiki in off-line mode so the users will see a message that the wiki is down for maintenance?
I know very little about server administration or Apache/IIS in particular, but couldn't you create some kinda rule that automatically re-directs any */WIKI/* URLs to to a MAINTENANCE.HTML (or .PHP)?
-- F.
mediawiki-l@lists.wikimedia.org