How to close your site for renovation?
What code is needed? I know that here it is necessary to give an example code!
- And doesn’t religion replace religion? :) - atnartur 4:08 pm
|
1 answer
And I know that
According to the rules of the forum, questions should not be reduced to proposals to perform work.
But not the point. Alternatively, you can:
- mod_rewrite rewrite all requests to the site to reconstruct.html
RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite\.com RewriteRule .* http://www.yoursite.com/reconstruct.html [L]
- redirect all requests to the same page.
And on the page is a message that the site is under construction.
- add, in the file reconstruct.html you can write exit ("Site under reconstruction"); - johniek_comp
|