There are plenty of HTACCESS maintenance mode redirects here on stack overflow but I have yet to find one which will work for my structure.
I would like to redirect www.example.com to www.example.com/sub/maintenancemode.html. However I would still like to have access to subdomain.example.com. Subdomain will be used for dev and staging purposes etc