Sometime we need to put off a website for security reasons. For example when a customer get a malware or the site is hacked and we must organize well to cover all the points that are needed:
Table of Contents
Time Needed : 0 days 0 hours 3 minutes
These steps work with Apache:
<html>
<body>
<h1>This site is temporarily under maintenance.</h1>
<h2>Will be back soon, please come back later.</h2>
</body>
</html>
#MAINTENANCE-PAGE REDIRECT
ErrorDocument 503 /maintenance.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=<YOURIPADDRESS>
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteRule ^.*$ - [R=503,L]
</IfModule>
Now you can find and fix the problem!
When you finished remove all lines you put on your .htaccess file
ErrorDocument 503 /maintenance.html means that if client get a 503 error will be redirect to maintenance page
RewriteCond %{REMOTE_ADDR} !=<YOURIPADDRESS> helps you to reach your site!
RewriteRule ^.*$ - [R=503,L] put a 503 error without change the URL.
Wi-Fi has become an essential part of our daily lives, connecting us to the internet…
Cisco Packet Tracer is a helpful tool for learning about networks. It lets you create…
There is a great problem with last major update of Chrome (and all browsers Chromium…
Learn how to download and how to use VMware HealthAnalyzer. Complete guide here!
VMware decided to remove VMware Converter from download area. So there is no an official…
Certo, ma… come sempre accade è sempre meglio verificare alcuni prerequisiti fondamentali di una vMotion…