Redirect all requests under a domain to an under construction folder
snippet in htaccess

Redirect all requests under a domain to an under construction folder

user2945

Options +FollowSymlinks -MultiViews
RewriteEngine On
# Add or remove file types in the next line if necessary.
RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif|bmp|js)  [NC]
RewriteCond %{REQUEST_URI} !underconstruction\.html  [NC]
RewriteRule .*   /underconstruction/underconstruction.html [R=302,L]