Hi,
for maintenance purpose I (admin) want to redirect https:/mymoodlesite.mydomain to an own 403-error document. The htaccess file in the moodle directory looks like this:
ErrorDocument 403 http://myerrordocument.mydomain
Order deny,allow
Deny from all
Allow from mymoodleipaddress
Using the URL https://mymoodlesite.mydomain the error-document is opening, but when I use the IP address mymoodleipaddress I get
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
instead of the website, eventhough the permissions for moodledata are 2777.
What do I have to change to be able to do the maintenance work on mymoodlesite not letting others to have access to it during that time?
Setting to maintenance mode via cli, doesn't allow the admin to work on the moodlesite, that is why I want to use the redirection.
Thanks in advance for answering.
Cheers,
Monica