I'm moving to a new server and want to take all of my sites offline during the transition. I know I can put this in my root .htaccess file to block people from visiting the site:
order deny,allow
deny from all
But I want to also output a message explaining why the site is down. Is this possible?
Try adding a:
ErrorDocument 403 /special_message.html
where the /special_message.html
is the file that contains your message.
you can add a message directly from .htaccess file, eg:
ErrorDocument 403 "Account Suspended"
I think last quote is optional too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With