You know, like the one Apple does during a keynote or whatever?

It’s easy with mod_rewrite – just add the following in a .htaccess (if your host supports that…)

RewriteCond %{REQUEST_URI} !/backsoon.html$<br /> RewriteRule ^.*$ /backsoon.html [L]

and every page that is not /backsoon.html will be temporarily replaced with the contents of backsoon.html

Don’t forget if you have images/css linked into backsoon.html, you’ll need to add a RewriteCond to except the rewrite.

RewriteCond ${REQUEST_URI} !/images/yourheader.png$<br /> RewriteCond ${REQUEST_URI} !/css/yourcss.css$

Here’s the whole thing :

``You know, like the one Apple does during a keynote or whatever?

It’s easy with mod_rewrite – just add the following in a .htaccess (if your host supports that…)

RewriteCond %{REQUEST_URI} !/backsoon.html$<br /> RewriteRule ^.*$ /backsoon.html [L]

and every page that is not /backsoon.html will be temporarily replaced with the contents of backsoon.html

Don’t forget if you have images/css linked into backsoon.html, you’ll need to add a RewriteCond to except the rewrite.

RewriteCond ${REQUEST_URI} !/images/yourheader.png$<br /> RewriteCond ${REQUEST_URI} !/css/yourcss.css$

Here’s the whole thing :

``

Enjoy, and thank [Mike][1] for prompting me to write this up!

[1]: http://mikeblock.com/