Appreciate your quick reply I will try to update my rule as per your suggestion (RewriteRule ^ - [R=503,L] ) and test.
Below is the rewrite output for two scenarios
1) /identity ( working scenario )
2) /identity/ ( non-working scenario )
1) For http
://host:port/identity
( there is no forward slash after identity here and it works fine and image also loads, below is the output I get )
(2) init rewrite engine with requested uri /identity
(3) applying pattern '^.*$' to uri '/identity'
(4) RewriteCond: input='/path/htdocs/maintenance.html' pattern='-f' => matched
(4) RewriteCond: input='/identity' pattern='!maintenance.html' => matched
(4) RewriteCond: input='/identity' pattern='!banner.jpg' => matched
(2) forcing responsecode 503 for /identity
(2) init rewrite engine with requested uri /maintenance.html
(3) applying pattern '^.*$' to uri '/maintenance.html'
(4) RewriteCond: input='/path/htdocs/maintenance.html' pattern='-f' => matched
(4) RewriteCond: input='/maintenance.html' pattern='!maintenance.html' => not-matched
(1) pass through /maintenance.html
(2) init rewrite engine with requested uri /banner.jpg
(3) applying pattern '^.*$' to uri '/banner.jpg'
(4) RewriteCond: input='/path/htdocs/maintenance.html' pattern='-f' => matched
(4) RewriteCond: input='/bbt_banner.jpg' pattern='!maintenance.html' => matched
(4) RewriteCond: input='/bbt_banner.jpg' pattern='!banner.jpg' => not-matched
(1) pass through /banner.jpg
2) This is the non working scenario where page images does not load I am using http
://host:port/identity/
(2) init rewrite engine with requested uri /identity/
(3) applying pattern '^.*$' to uri '/identity/'
(4) RewriteCond: input='/path/htdocs/maintenance.html' pattern='-f' => matched
(4) RewriteCond: input='/identity/' pattern='!maintenance.html' => matched
(4) RewriteCond: input='/identity/' pattern='!banner.jpg' => matched
(2) forcing responsecode 503 for /identity/
(2) init rewrite engine with requested uri /maintenance.html
(3) applying pattern '^.*$' to uri '/maintenance.html'
(4) RewriteCond: input='/path/htdocs/maintenance.html' pattern='-f' => matched
(4) RewriteCond: input='/maintenance.html' pattern='!maintenance.html' => not-matched
(1) pass through /maintenance.html
(2) init rewrite engine with requested uri /identity/banner.jpg
(3) applying pattern '^.*$' to uri '/identity/banner.jpg'
(4) RewriteCond: input='/path/htdocs/maintenance.html' pattern='-f' => matched
(4) RewriteCond: input='/identity/banner.jpg' pattern='!maintenance.html' => matched
(4) RewriteCond: input='/identity/banner.jpg' pattern='!banner.jpg' => not-matched
(1) pass through /identity/banner.jpg
Note: As you can see in secound case its looking for banner.jpg under /identity but there is no image there so the image is not loading , the image is present under same path were maintenance.html is.
[edited by: phranque at 12:24 am (utc) on Jul 8, 2016]
[edit reason] unlinked url pattern for clarity [/edit]