I am trying to create maintenance mode page to be able to close only a part of site using URL mask: //example.com/private-cabinet/
So all pages /private-cabinet/etc/etc/etc
needs to be down for maintenance with 503 HTTP status, but at the same time //example.com/
or //example.com/any-other-url/
needs to be available. Also would be great if admin user is able to bypass this redirect and see the content.
Can you help me with some custom code or maybe there actually is a plugin that meets my needs? Because all plugins I have found seems to be able to close only entire site, not just part of it.