I have followed this guide to enable maintenance mode and create a maintenance page.
I have add new 4 file in root
- /maintenance_files/styles.css
- /maintenance_files/widgets.css
- /maintenance_files/pelle_meca.png
and add this code in root .htaccess file.
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^192\.0\.2\.110
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{DOCUMENT_ROOT}/maintenance.enable -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance.html [R=503,L]
ErrorDocument 503 /maintenance.html
Header Set Cache-Control "max-age=0, no-store"
I have enabled maintenance mode and create file maintenance.enable in doc root.
Now all Url is rewritten on the maintenance page but CSS and image are also rewritten and page structure is messed up.