Do you need to redirect everything on a web site to the same page? (This can happen if you need to notify all incoming web users of critical server problems and/or slashdotting that will force an extended outage; or if you want to make a Web site vanish. My current problem is the former.)
Put this code in the .htaccess file on the top level of your web directory. Change the two instances of "index.html" to the name of the page your message will be located at. Assuming mod_rewrite is installed and configured correctly, and the .htaccess file is readable by the web server, that should do the trick.
# First, we want to define the items that are specifically excluded
# from our redirection.
# Play nice with search engines: let robots.txt go free.
RewriteRule ^robots.txt$ - [L]
# You can allow people through to other pages by using the same syntax:
# RewriteRule ^FULL_PATH/AND_PAGE.NAME$ - [L]
# In MOST cases, we want to allow CSS and image files through.
RewriteRule \.(css|jpe?g|gif|png)$ - [L]
# If you want to block people from getting images, however,
# comment out the above line and instead uncomment the
# next two -- that will cause images to return a 404 error.
# RewriteRule \.(css|jpe?g|gif|png)$ NAME_OF_A_NONEXISTENT_PAGE.html [L]
# RewriteRule ^NAME_OF_A_NONEXISTENT_PAGE\.html - [L]
# This is the important one: the name of the page that will contain
# your global message. By default, index.html in the top directory.
RewriteRule ^index\.html - [L]
# And this line throws everything we haven't excluded at it.
RewriteRule ^.*$ /index.html [L,R=302]
Currently, you can see the results of this by going to any page at Tomorrowlands. I'd rather have the site back up, but at least this is better than nothing.
(E-mail should work again too, btw. But the gmail address is probably safer for the moment.)