I try to establish a kind of maintenance-mode for my domain. That means that I would like to redirect all requests to a maintenance-page telling the user that the site is temporarily down for maintenance. Only requests to a specific directory should not be redirected (this is the path where the cms-backend is called - otherwise no access even for me to the content and to previews )
- Code: Select all
Example:
http://xxx.domain.tld/something.html -> redirect to http://xxx.domain.tld/maintenance.html
http://xxx.domain.tld/something_else.html -> redirect to http://xxx.domain.tld/maintenance.html
.
but:
http://xxx.domain.tld/specific_dir/somebackend.html -> no redirect
Can you please help me finding the right way to do this ? Thanks