Next, you will need to forward your maintenance page to the visitors on your web page. A file should be created and titled “.htaccess”. This file should be placed directly into your web application. In the file, copy and paste the code below:
Options +FollowSymlinks
RewriteEngine on
RewriteCond % {REQUEST_URL} !/maintenance.html$
RewriteRule $ /maintenance.html [R=302,L]

click to enlarge