I think you would have to do it in the php directly and not the .htaccess.
The way I've done this in the past is to add a check on the theme page (using webassist themes) that redirects to the maintenance section if it is in maintenance mode, but allows admins to continue browsing the site to debug.