Home Apache PHP Ubuntu MySQL Linux HTML Win CSS Perl Javascript Rants Retro
 
Print This Page
Date Posted: Wednesday 13th of April 2011 | Category: Apache
htaccess Redirect to Maintenance Page for Site
If you would like to redirect your whole site to a maintenance page, copy and paste the code below and save this as an htaccess file.

The file will need to be uploaded to your root diretory which is usually www or public_html

Make sure you also create an .html page called maintenance.html

ErrorDocument 403 /maintenance.html
<Files closed.html>
order allow,deny
allow from all
</Files>
Related Links:
- htaccess tutorial